summaryrefslogtreecommitdiff
path: root/test/CodeGen/Thumb2/ldr-str-imm12.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-06-24 15:04:11 +0000
committerDan Gohman <gohman@apple.com>2010-06-24 15:04:11 +0000
commit102f3851bbde16fdd826d072240731365fe6da5d (patch)
tree4b722c9415c22d1368c631fa076455e03deacab6 /test/CodeGen/Thumb2/ldr-str-imm12.ll
parent9e4f243de7c0a41ae02c93f7209ad97935e9853d (diff)
downloadllvm-102f3851bbde16fdd826d072240731365fe6da5d.tar.gz
llvm-102f3851bbde16fdd826d072240731365fe6da5d.tar.bz2
llvm-102f3851bbde16fdd826d072240731365fe6da5d.tar.xz
Eliminate the first have of the optimization which eliminates BRCOND
when the condition is constant. This optimization shouldn't be necessary, because codegen shouldn't be able to find dead control paths that the IR-level optimizer can't find. And it's undesirable, because it encourages bugpoint to leave "br i1 false" branches in its output. And it wasn't updating the CFG. I updated all the tests I could, but some tests are too reduced and I wasn't able to meaningfully preserve them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106748 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb2/ldr-str-imm12.ll')
-rw-r--r--test/CodeGen/Thumb2/ldr-str-imm12.ll5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/CodeGen/Thumb2/ldr-str-imm12.ll b/test/CodeGen/Thumb2/ldr-str-imm12.ll
index b444b29483..29b8e75cb8 100644
--- a/test/CodeGen/Thumb2/ldr-str-imm12.ll
+++ b/test/CodeGen/Thumb2/ldr-str-imm12.ll
@@ -25,10 +25,7 @@ entry:
; CHECK: ldr.w r9, [r7, #28]
%xgaps.i = alloca [32 x %union.rec*], align 4 ; <[32 x %union.rec*]*> [#uses=0]
%ycomp.i = alloca [32 x %union.rec*], align 4 ; <[32 x %union.rec*]*> [#uses=0]
- br i1 false, label %bb, label %bb20
-
-bb: ; preds = %entry
- unreachable
+ br label %bb20
bb20: ; preds = %entry
switch i32 undef, label %bb1287 [