diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2014-11-01 09:09:51 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2014-11-01 09:09:51 +0000 |
| commit | 549f4f25103c70c7b796e56fe28324ca5ad904b6 (patch) | |
| tree | b533cf71c1c01df9e51d1721ff1c8ae10743e34e /llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp | |
| parent | c758df4053767b19709a3345eb22f73f8894931b (diff) | |
| download | bcm5719-llvm-549f4f25103c70c7b796e56fe28324ca5ad904b6.tar.gz bcm5719-llvm-549f4f25103c70c7b796e56fe28324ca5ad904b6.zip | |
InstCombine: Combine (X+cst) < 0 --> X < -cst
This can happen pretty often in code that looks like:
int foo = bar - 1;
if (foo < 0)
do stuff
In this case, bar < 1 is an equivalent condition.
This transform requires that the add instruction be annotated with nsw.
llvm-svn: 221045
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp')
0 files changed, 0 insertions, 0 deletions

