[llvm-commits] [llvm] r54361 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Owen Anderson
resistor at mac.com
Tue Aug 5 11:28:27 PDT 2008
Author: resistor
Date: Tue Aug 5 13:27:54 2008
New Revision: 54361
URL: http://llvm.org/viewvc/llvm-project?rev=54361&view=rev
Log:
Remove the -disable-correct-folding option, which was ugly and is no longer needed.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp?rev=54361&r1=54360&r2=54361&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Tue Aug 5 13:27:54 2008
@@ -53,9 +53,6 @@
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 @@
// 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);
More information about the llvm-commits
mailing list