aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorFelix Schneider <fx.schn@gmail.com>2024-05-13 19:27:38 +0200
committerGitHub <noreply@github.com>2024-05-13 19:27:38 +0200
commit0f7906645d18a38a6b80a1e8e1d425396f6ab353 (patch)
tree23ef4bb4a6afe9c3f55a1b74963f94685b6e857e /llvm/lib/IR/Module.cpp
parentcf40c93b5be5cd0011ebbf3a9eead224f7b7079a (diff)
downloadllvm-0f7906645d18a38a6b80a1e8e1d425396f6ab353.zip
llvm-0f7906645d18a38a6b80a1e8e1d425396f6ab353.tar.gz
llvm-0f7906645d18a38a6b80a1e8e1d425396f6ab353.tar.bz2
[mlir][intrange] Fix `arith.shl` inference in case of overflow (#91737)
When an overflow happens during shift left, i.e. the last sign bit or the most significant data bit gets shifted out, the current approach of inferring the range of results does not work anymore. This patch checks for possible overflow and returns the max range in that case. Fix https://github.com/llvm/llvm-project/issues/82158
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions