diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2014-10-11 10:20:01 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2014-10-11 10:20:01 +0000 |
| commit | cb9d59665531cb2a894ac8af7e7cf476fba40600 (patch) | |
| tree | ab0f8a8ced3fe61c01f5cbd807dabda731b62411 /llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp | |
| parent | 3cac85e07120f0cfcbc8e78a975f68ae99fcebbb (diff) | |
| download | llvm-cb9d59665531cb2a894ac8af7e7cf476fba40600.zip llvm-cb9d59665531cb2a894ac8af7e7cf476fba40600.tar.gz llvm-cb9d59665531cb2a894ac8af7e7cf476fba40600.tar.bz2 | |
InstCombine, InstSimplify: (%X /s C1) /s C2 isn't always 0 when C1 * C2 overflow
consider:
C1 = INT_MIN
C2 = -1
C1 * C2 overflows without a doubt but consider the following:
%x = i32 INT_MIN
This means that (%X /s C1) is 1 and (%X /s C1) /s C2 is -1.
N. B. Move the unsigned version of this transform to InstSimplify, it
doesn't create any new instructions.
This fixes PR21243.
llvm-svn: 219567
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp')
0 files changed, 0 insertions, 0 deletions
