diff options
author | Dan Gohman <gohman@apple.com> | 2010-06-24 15:04:11 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-06-24 15:04:11 +0000 |
commit | a74a6cc09492bbf519b12d61597e60cd5daf6834 (patch) | |
tree | 4b722c9415c22d1368c631fa076455e03deacab6 /test/CodeGen/X86/ins_subreg_coalesce-3.ll | |
parent | 64414d3e54026f80e31771d02fb4d2848ce13f07 (diff) | |
download | external_llvm-a74a6cc09492bbf519b12d61597e60cd5daf6834.zip external_llvm-a74a6cc09492bbf519b12d61597e60cd5daf6834.tar.gz external_llvm-a74a6cc09492bbf519b12d61597e60cd5daf6834.tar.bz2 |
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/X86/ins_subreg_coalesce-3.ll')
-rw-r--r-- | test/CodeGen/X86/ins_subreg_coalesce-3.ll | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/CodeGen/X86/ins_subreg_coalesce-3.ll b/test/CodeGen/X86/ins_subreg_coalesce-3.ll index 8c1c409..63881e0 100644 --- a/test/CodeGen/X86/ins_subreg_coalesce-3.ll +++ b/test/CodeGen/X86/ins_subreg_coalesce-3.ll @@ -39,8 +39,7 @@ bb650: ; preds = %bb650, %bb428 %tmp659 = icmp eq i8 %tmp658, 0 ; <i1> [#uses=1] br i1 %tmp659, label %bb650, label %bb662 bb662: ; preds = %bb650 - %tmp685 = icmp eq %struct.rec* null, null ; <i1> [#uses=1] - br i1 %tmp685, label %bb761, label %bb688 + br label %bb761 bb688: ; preds = %bb662 ret void bb761: ; preds = %bb662 |