aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
diff options
context:
space:
mode:
authorKonstantin Schwarz <konstantin.schwarz@hightec-rt.com>2020-10-12 11:45:33 +0200
committerKonstantin Schwarz <konstantin.schwarz@hightec-rt.com>2020-10-12 18:39:19 +0200
commit734112343917a011676c2915c5e5d29803a51ba6 (patch)
tree29f0e85ed234a2ae1ddeda9a24b4bd397a0e797b /llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
parent2f66bfac280f9ae9299dccc357ae10e8a48525ed (diff)
downloadllvm-734112343917a011676c2915c5e5d29803a51ba6.zip
llvm-734112343917a011676c2915c5e5d29803a51ba6.tar.gz
llvm-734112343917a011676c2915c5e5d29803a51ba6.tar.bz2
[GlobalISel][KnownBits] Early return on out of bound shift amounts
If the known shift amount is bigger than or equal to the bitwidth of the type of the value to be shifted, the result is target dependent, so don't try to infer any bits. This fixes a crash we've seen in one of our internal test suites. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D89232
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyIndVar.cpp')
0 files changed, 0 insertions, 0 deletions