summaryrefslogtreecommitdiffstats
path: root/clang/Driver/RewriteTest.cpp
diff options
context:
space:
mode:
authorChristopher Lamb <christopher.lamb@gmail.com>2007-12-18 21:32:20 +0000
committerChristopher Lamb <christopher.lamb@gmail.com>2007-12-18 21:32:20 +0000
commitf00ac6dd93c281cec9176575ad26c5bd7f497332 (patch)
treead99a4944ef8c30af9246a9f83d13339a7e2f6c7 /clang/Driver/RewriteTest.cpp
parent95cc3e0e6626776d517766fa42dcbfbed63c59b0 (diff)
downloadbcm5719-llvm-f00ac6dd93c281cec9176575ad26c5bd7f497332.tar.gz
bcm5719-llvm-f00ac6dd93c281cec9176575ad26c5bd7f497332.zip
Fold subtracts into integer compares vs. zero. This improves generate code for this case on X86
from _foo: movl $99, %ecx movl 4(%esp), %eax subl %eax, %ecx xorl %edx, %edx testl %ecx, %ecx cmovs %edx, %eax ret to _foo: xorl %ecx, %ecx movl 4(%esp), %eax cmpl $99, %eax cmovg %ecx, %eax ret llvm-svn: 45173
Diffstat (limited to 'clang/Driver/RewriteTest.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud