summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-08-05 18:27:54 +0000
committerOwen Anderson <resistor@mac.com>2008-08-05 18:27:54 +0000
commit3bc9c6f3e75dba02c1cc647b1f56ee1f39919046 (patch)
treef775f592d77d151afde4bb3f7e2151243c31ba2c /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parentebec67805513fa99d74a48c3cc58ca52f85e3f3d (diff)
downloadllvm-3bc9c6f3e75dba02c1cc647b1f56ee1f39919046.tar.gz
llvm-3bc9c6f3e75dba02c1cc647b1f56ee1f39919046.tar.bz2
llvm-3bc9c6f3e75dba02c1cc647b1f56ee1f39919046.tar.xz
Remove the -disable-correct-folding option, which was ugly and is no longer needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54361 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index b3e18f60da..961c12d7a7 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -53,9 +53,6 @@ static cl::opt<bool>
EnableValueProp("enable-value-prop", cl::Hidden);
static cl::opt<bool>
EnableLegalizeTypes("enable-legalize-types", cl::Hidden);
-static cl::opt<bool>
-DisableCorrectBranchFolding("disable-correct-folding", cl::init(false),
- cl::Hidden);
#ifndef NDEBUG
@@ -1638,14 +1635,12 @@ void SelectionDAGLowering::visitSwitchCase(SelectionDAGISel::CaseBlock &CB) {
// If the branch was constant folded, fix up the CFG.
if (BrCond.getOpcode() == ISD::BR) {
- if (!DisableCorrectBranchFolding)
- CurMBB->removeSuccessor(CB.FalseBB);
+ CurMBB->removeSuccessor(CB.FalseBB);
DAG.setRoot(BrCond);
} else {
// Otherwise, go ahead and insert the false branch.
if (BrCond == getControlRoot())
- if (!DisableCorrectBranchFolding)
- CurMBB->removeSuccessor(CB.TrueBB);
+ CurMBB->removeSuccessor(CB.TrueBB);
if (CB.FalseBB == NextBlock)
DAG.setRoot(BrCond);