Eliminate the first have of the optimization which eliminates BRCOND
authorDan Gohman <gohman@apple.com>
Thu, 24 Jun 2010 15:04:11 +0000 (15:04 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 24 Jun 2010 15:04:11 +0000 (15:04 +0000)
commit102f3851bbde16fdd826d072240731365fe6da5d
tree4b722c9415c22d1368c631fa076455e03deacab6
parent9e4f243de7c0a41ae02c93f7209ad97935e9853d
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
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
test/CodeGen/PowerPC/2008-03-06-KillInfo.ll [deleted file]
test/CodeGen/Thumb2/ldr-str-imm12.ll
test/CodeGen/X86/2006-11-17-IllegalMove.ll
test/CodeGen/X86/2007-10-12-CoalesceExtSubReg.ll
test/CodeGen/X86/2007-11-14-Coalescer-Bug.ll [deleted file]
test/CodeGen/X86/2008-10-16-SpillerBug.ll [deleted file]
test/CodeGen/X86/imp-def-copies.ll [deleted file]
test/CodeGen/X86/ins_subreg_coalesce-3.ll