diff options
author | Manman Ren <mren@apple.com> | 2012-05-10 18:49:43 +0000 |
---|---|---|
committer | Manman Ren <mren@apple.com> | 2012-05-10 18:49:43 +0000 |
commit | fe65d98dadbedf2650266ac71c1c093c3b97da1f (patch) | |
tree | 1f7ee3f36ed9a16840ef1f2831449a5c6fa6684d /lib/CodeGen/PeepholeOptimizer.cpp | |
parent | 148f392195dec8772ab4c5ac0d0c3b85fba0e5f8 (diff) | |
download | external_llvm-fe65d98dadbedf2650266ac71c1c093c3b97da1f.zip external_llvm-fe65d98dadbedf2650266ac71c1c093c3b97da1f.tar.gz external_llvm-fe65d98dadbedf2650266ac71c1c093c3b97da1f.tar.bz2 |
Revert: 156550 "ARM: peephole optimization to remove cmp instruction"
This commit broke an external linux bot and gave a compile-time warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156556 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PeepholeOptimizer.cpp')
-rw-r--r-- | lib/CodeGen/PeepholeOptimizer.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/CodeGen/PeepholeOptimizer.cpp b/lib/CodeGen/PeepholeOptimizer.cpp index ab672c9..70b5020 100644 --- a/lib/CodeGen/PeepholeOptimizer.cpp +++ b/lib/CodeGen/PeepholeOptimizer.cpp @@ -31,15 +31,6 @@ // same flag that the "cmp" instruction sets and that "bz" uses, then we can // eliminate the "cmp" instruction. // -// Another instance, in this code: -// -// sub r1, r3 | sub r1, imm -// cmp r3, r1 or cmp r1, r3 | cmp r1, imm -// bge L1 -// -// If the branch instruction can use flag from "sub", then we can replace -// "sub" with "subs" and eliminate the "cmp" instruction. -// // - Optimize Bitcast pairs: // // v1 = bitcast v0 |