summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARFDebugArangeSet.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-11-01 09:09:51 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-11-01 09:09:51 +0000
commit549f4f25103c70c7b796e56fe28324ca5ad904b6 (patch)
treeb533cf71c1c01df9e51d1721ff1c8ae10743e34e /llvm/lib/DebugInfo/DWARFDebugArangeSet.cpp
parentc758df4053767b19709a3345eb22f73f8894931b (diff)
downloadbcm5719-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/DWARFDebugArangeSet.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud