aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/FileCheck/FileCheck.cpp
diff options
context:
space:
mode:
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2024-07-04 10:34:04 +0200
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2024-07-05 22:37:26 +0200
commitc2fbc701aaf826e2015a5dcab36e3ba792e7da7f (patch)
treee736d748692feab210696fbbacbd61c566241ca3 /llvm/lib/FileCheck/FileCheck.cpp
parentf6ae0d302f09f62b852a29f6dbfdbb4b9c2affb7 (diff)
downloadllvm-c2fbc701aaf826e2015a5dcab36e3ba792e7da7f.zip
llvm-c2fbc701aaf826e2015a5dcab36e3ba792e7da7f.tar.gz
llvm-c2fbc701aaf826e2015a5dcab36e3ba792e7da7f.tar.bz2
[SelectionDAG] Let ComputeKnownSignBits handle (shl (ext X), C) (#97695)
Add simple support for looking through ZEXT/ANYEXT/SEXT when doing ComputeKnownSignBits for SHL. This is valid for the case when all extended bits are shifted out, because then the number of sign bits can be found by analysing the EXT operand. A future improvement could be to pass along the "shifted left by" information in the recursive calls to ComputeKnownSignBits. Allowing us to handle this more generically.
Diffstat (limited to 'llvm/lib/FileCheck/FileCheck.cpp')
0 files changed, 0 insertions, 0 deletions