summaryrefslogtreecommitdiff
path: root/lib/CodeGen/BranchFolding.cpp
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2012-06-01 19:49:33 +0000
committerManman Ren <mren@apple.com>2012-06-01 19:49:33 +0000
commit73c2f7f5ed767a6fc062fd198551be902b7b7d5b (patch)
tree0e7ddc57a166cd5f076eac14c404412061d88d0f /lib/CodeGen/BranchFolding.cpp
parent68f25571e759c1fcf2da206109647259f49f7416 (diff)
downloadllvm-73c2f7f5ed767a6fc062fd198551be902b7b7d5b.tar.gz
llvm-73c2f7f5ed767a6fc062fd198551be902b7b7d5b.tar.bz2
llvm-73c2f7f5ed767a6fc062fd198551be902b7b7d5b.tar.xz
X86: peephole optimization to remove cmp instruction
This patch will optimize the following: sub r1, r3 cmp r3, r1 or cmp r1, r3 bge L1 TO sub r1, r3 bge L1 or ble L1 If the branch instruction can use flag from "sub", then we can eliminate the "cmp" instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157831 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BranchFolding.cpp')
0 files changed, 0 insertions, 0 deletions