diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-03-13 16:39:46 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-03-13 16:39:46 +0000 |
commit | e2a4b856d8da5d1119acffbd127f6ebe6db42677 (patch) | |
tree | 5fff2c6705b3fbab5fe22e2cc5b3fa0c084235d2 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | d3b7582c8444e4bc78f4282d8911927a2b4283d1 (diff) | |
download | bcm5719-llvm-e2a4b856d8da5d1119acffbd127f6ebe6db42677.tar.gz bcm5719-llvm-e2a4b856d8da5d1119acffbd127f6ebe6db42677.zip |
ConstantFold: Fix big shift constant folding
Constant folding for shift IR instructions ignores all bits above 32 of
second argument (shift amount).
Because of that, some undef results are not recognized and APInt can
raise an assert failure if second argument has more than 64 bits.
Patch by Paweł Bylica!
Differential Revision: http://reviews.llvm.org/D7701
llvm-svn: 232176
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions