summaryrefslogtreecommitdiff
path: root/lib/CodeGen/PeepholeOptimizer.cpp
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2012-05-10 18:49:43 +0000
committerManman Ren <mren@apple.com>2012-05-10 18:49:43 +0000
commitfe65d98dadbedf2650266ac71c1c093c3b97da1f (patch)
tree1f7ee3f36ed9a16840ef1f2831449a5c6fa6684d /lib/CodeGen/PeepholeOptimizer.cpp
parent148f392195dec8772ab4c5ac0d0c3b85fba0e5f8 (diff)
downloadllvm-fe65d98dadbedf2650266ac71c1c093c3b97da1f.tar.gz
llvm-fe65d98dadbedf2650266ac71c1c093c3b97da1f.tar.bz2
llvm-fe65d98dadbedf2650266ac71c1c093c3b97da1f.tar.xz
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.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/CodeGen/PeepholeOptimizer.cpp b/lib/CodeGen/PeepholeOptimizer.cpp
index ab672c9c58..70b5020f54 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