summaryrefslogtreecommitdiffstats
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
commit7c42ac413389a3a366fe5aa7dff10a3a0eb422c1 (patch)
tree07fa84b5ecd92c6e71ed983aa2a0b819b6c89328
parent1ca5c644403519ae70ca0fb1aa6c4a9cb443b00d (diff)
downloadbcm5719-llvm-7c42ac413389a3a366fe5aa7dff10a3a0eb422c1.tar.gz
bcm5719-llvm-7c42ac413389a3a366fe5aa7dff10a3a0eb422c1.zip
Remove the -disable-correct-folding option, which was ugly and is no longer needed.
llvm-svn: 54361
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index b3e18f60dad..961c12d7a77 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud