mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Remove the -disable-correct-folding option, which was ugly and is no longer needed.
llvm-svn: 54361
This commit is contained in:
parent
0ad96be1be
commit
667d9c95c2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user