diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-05-04 22:10:36 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-05-04 22:10:36 +0000 |
commit | baf717a08a0bc8cb0a7931ea3ce51d063a8fe6f0 (patch) | |
tree | a783b0a34d6af1c5765489ade3449320ebbec85f /test/CodeGen/Thumb2 | |
parent | b90584ae78a7acc4ac92e3ad52121a10c520b980 (diff) | |
download | external_llvm-baf717a08a0bc8cb0a7931ea3ce51d063a8fe6f0.zip external_llvm-baf717a08a0bc8cb0a7931ea3ce51d063a8fe6f0.tar.gz external_llvm-baf717a08a0bc8cb0a7931ea3ce51d063a8fe6f0.tar.bz2 |
Re-commit r130862 with a minor change to avoid an iterator running off the edge in some cases.
Original message:
Teach MachineCSE how to do simple cross-block CSE involving physregs. This allows, for example, eliminating duplicate cmpl's on x86. Part of rdar://problem/8259436 .
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130877 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb2')
-rw-r--r-- | test/CodeGen/Thumb2/thumb2-cbnz.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/Thumb2/thumb2-cbnz.ll b/test/CodeGen/Thumb2/thumb2-cbnz.ll index 10a4985..0ca9764 100644 --- a/test/CodeGen/Thumb2/thumb2-cbnz.ll +++ b/test/CodeGen/Thumb2/thumb2-cbnz.ll @@ -21,8 +21,8 @@ bb7: ; preds = %bb3 bb9: ; preds = %bb7 ; CHECK: cmp r0, #0 -; CHECK: cmp r0, #0 -; CHECK-NEXT: cbnz +; CHECK-NOT: cmp +; CHECK: cbnz %0 = tail call double @floor(double %b) nounwind readnone ; <double> [#uses=0] br label %bb11 |