diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2025-07-07 10:44:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-07 10:44:03 +0100 |
commit | 52383956f8b7184aec14b5c8fe90aebd9f0a186f (patch) | |
tree | ddfa6acd0c63309589333161989fe49d7e426969 /llvm/lib/Bitcode | |
parent | 465f2b05712d18b32d5375c096f2406c6dcd700d (diff) | |
download | llvm-52383956f8b7184aec14b5c8fe90aebd9f0a186f.zip llvm-52383956f8b7184aec14b5c8fe90aebd9f0a186f.tar.gz llvm-52383956f8b7184aec14b5c8fe90aebd9f0a186f.tar.bz2 |
[DAG] Replace DAGCombiner::ConstantFoldBITCASTofBUILD_VECTOR with SelectionDAG::FoldConstantBuildVector (#147037)
DAGCombiner can already constant fold build vectors of constants/undefs
to a new vector type, but it has to be incredibly careful after
legalization to not affect a target's canonicalized constants.
This patch proposes we move the implementation inside SelectionDAG to
make it easier for targets to manually use the constant folding whenever
it deems it safe to do so.
I've also altered the method to take the BuildVectorSDNode input
directly and consistently use the same SDLoc.
Diffstat (limited to 'llvm/lib/Bitcode')
0 files changed, 0 insertions, 0 deletions