summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-12-20 18:41:54 +0000
committerCraig Topper <craig.topper@gmail.com>2015-12-20 18:41:54 +0000
commit074e845260f2e1d4f98d3e20215ece11af02cae0 (patch)
tree492e32840113b787794f89b2ceed0e029e71cb0c /llvm/lib/Transforms
parent30e2307f61b5e0e26c6b5c72dc2ea6b56f5ddad0 (diff)
downloadbcm5719-llvm-074e845260f2e1d4f98d3e20215ece11af02cae0.tar.gz
bcm5719-llvm-074e845260f2e1d4f98d3e20215ece11af02cae0.zip
[X86] Prevent constant hoisting for a couple compare immediates that the selection DAG knows how to optimize into a shift.
This allows "icmp ugt %a, 4294967295" and "icmp uge %a, 4294967296" to be optimized into right shifts by 32 which can fold the immediate into the shift instruction. These patterns show up with some regularity in real code. Unfortunately, since getImmCost can't see the icmp predicate we can't be tell if we're only catching these specific cases. llvm-svn: 256126
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud