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 | b555b382bd9812af3299f397fdd18e1fa62f1079 (patch) | |
tree | 9f0c1d86208a8e70900b5cf519640db123649ec2 /llvm/lib/CodeGen/PeepholeOptimizer.cpp | |
parent | c1e9087fbb3fb3ff6f876ac2771b3bdc14098d64 (diff) | |
download | bcm5719-llvm-b555b382bd9812af3299f397fdd18e1fa62f1079.tar.gz bcm5719-llvm-b555b382bd9812af3299f397fdd18e1fa62f1079.zip |
Revert: 156550 "ARM: peephole optimization to remove cmp instruction"
This commit broke an external linux bot and gave a compile-time warning.
llvm-svn: 156556
Diffstat (limited to 'llvm/lib/CodeGen/PeepholeOptimizer.cpp')
-rw-r--r-- | llvm/lib/CodeGen/PeepholeOptimizer.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/PeepholeOptimizer.cpp b/llvm/lib/CodeGen/PeepholeOptimizer.cpp index ab672c9c585..70b5020f541 100644 --- a/llvm/lib/CodeGen/PeepholeOptimizer.cpp +++ b/llvm/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 |