aboutsummaryrefslogtreecommitdiff
path: root/lib/MC/MCParser/AsmParser.cpp
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2012-05-01 17:16:15 +0000
committerManman Ren <mren@apple.com>2012-05-01 17:16:15 +0000
commit769ea2f93fa7fdd73f8388e863cf4dc9689d2e38 (patch)
treea26f03e58df98343d7a91ec65aebad9d8dc5f8c3 /lib/MC/MCParser/AsmParser.cpp
parentd07d06ceef942c478c0f75a4c4d7442e61ddff1d (diff)
X86: optimization for max-like struct
This patch will optimize the following cases on X86 (a > b) ? (a-b) : 0 (a >= b) ? (a-b) : 0 (b < a) ? (a-b) : 0 (b <= a) ? (a-b) : 0 FROM movl %edi, %ecx subl %esi, %ecx cmpl %edi, %esi movl $0, %eax cmovll %ecx, %eax TO xorl %eax, %eax subl %esi, %edi cmovll %eax, %edi movl %edi, %eax rdar: 10734411 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155919 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCParser/AsmParser.cpp')
0 files changed, 0 insertions, 0 deletions