summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2013-04-11 20:05:46 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2013-04-11 20:05:46 +0000
commitb81cd63c4b7d9a352eab7ccf8d95962999d320a9 (patch)
tree00cc24f50e3cfb6375386083392b270795e2f2ef /clang/lib/CodeGen/CodeGenModule.cpp
parenta16fa808d35d2c24dd212ce88b810518074cf8bb (diff)
downloadbcm5719-llvm-b81cd63c4b7d9a352eab7ccf8d95962999d320a9.tar.gz
bcm5719-llvm-b81cd63c4b7d9a352eab7ccf8d95962999d320a9.zip
Optimize icmp involving addition better
Allows LLVM to optimize sequences like the following: %add = add nsw i32 %x, 1 %cmp = icmp sgt i32 %add, %y into: %cmp = icmp sge i32 %x, %y as well as: %add1 = add nsw i32 %x, 20 %add2 = add nsw i32 %y, 57 %cmp = icmp sge i32 %add1, %add2 into: %add = add nsw i32 %y, 37 %cmp = icmp sle i32 %cmp, %x llvm-svn: 179316
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud