aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2022-07-21 15:07:06 -0400
committerSanjay Patel <spatel@rotateright.com>2022-07-21 15:23:57 -0400
commit78c09f0f24b6af6d17aeef93c13c54e251e57e8c (patch)
tree04e78dc827b9a71bb6211c536ad714abfee9661f /llvm/lib/Transforms/Utils/BuildLibCalls.cpp
parentb03891268cc378ce01a8da40483224aa1cfee5b6 (diff)
downloadllvm-78c09f0f24b6af6d17aeef93c13c54e251e57e8c.zip
llvm-78c09f0f24b6af6d17aeef93c13c54e251e57e8c.tar.gz
llvm-78c09f0f24b6af6d17aeef93c13c54e251e57e8c.tar.bz2
[PatternMatch][InstCombine] match a vector with constant expression element(s) as a constant expression
The InstCombine test is reduced from issue #56601. Without the more liberal match for ConstantExpr, we try to rearrange constants in Negator forever. Alternatively, we could adjust the definition of m_ImmConstant to be more conservative, but that's probably a larger patch, and I don't see any downside to changing m_ConstantExpr. We never capture and modify a ConstantExpr; transforms just want to avoid it. Differential Revision: https://reviews.llvm.org/D130286
Diffstat (limited to 'llvm/lib/Transforms/Utils/BuildLibCalls.cpp')
0 files changed, 0 insertions, 0 deletions