diff options
author | Manman Ren <mren@apple.com> | 2012-06-01 19:49:33 +0000 |
---|---|---|
committer | Manman Ren <mren@apple.com> | 2012-06-01 19:49:33 +0000 |
commit | 73c2f7f5ed767a6fc062fd198551be902b7b7d5b (patch) | |
tree | 0e7ddc57a166cd5f076eac14c404412061d88d0f /lib/CodeGen/DeadMachineInstructionElim.cpp | |
parent | 68f25571e759c1fcf2da206109647259f49f7416 (diff) |
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/DeadMachineInstructionElim.cpp')
0 files changed, 0 insertions, 0 deletions