aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitstreamReader.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-05-10 16:26:37 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-05-10 16:26:37 +0000
commit14e915f7b45eab991952e044901c32fbb1efabc8 (patch)
tree2a45317c8827fd624910e556a42e9b6f27662062 /llvm/lib/Bitcode/Reader/BitstreamReader.cpp
parent4ea23b56c50da5e8c59604190bb1b145e4b3a335 (diff)
downloadllvm-14e915f7b45eab991952e044901c32fbb1efabc8.zip
llvm-14e915f7b45eab991952e044901c32fbb1efabc8.tar.gz
llvm-14e915f7b45eab991952e044901c32fbb1efabc8.tar.bz2
InstCombine: Don't claim to be able to evaluate any shl in a zexted type.
The shift amount may be larger than the type leading to undefined behavior. Limit the transform to constant shift amounts. While there update the bits to clear in the result which may enable additional optimizations. PR15959. llvm-svn: 181604
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitstreamReader.cpp')
0 files changed, 0 insertions, 0 deletions