mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
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
This commit is contained in:
@@ -53,9 +53,6 @@ static cl::opt<bool>
|
|||||||
EnableValueProp("enable-value-prop", cl::Hidden);
|
EnableValueProp("enable-value-prop", cl::Hidden);
|
||||||
static cl::opt<bool>
|
static cl::opt<bool>
|
||||||
EnableLegalizeTypes("enable-legalize-types", cl::Hidden);
|
EnableLegalizeTypes("enable-legalize-types", cl::Hidden);
|
||||||
static cl::opt<bool>
|
|
||||||
DisableCorrectBranchFolding("disable-correct-folding", cl::init(false),
|
|
||||||
cl::Hidden);
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
@@ -1638,14 +1635,12 @@ void SelectionDAGLowering::visitSwitchCase(SelectionDAGISel::CaseBlock &CB) {
|
|||||||
|
|
||||||
// If the branch was constant folded, fix up the CFG.
|
// If the branch was constant folded, fix up the CFG.
|
||||||
if (BrCond.getOpcode() == ISD::BR) {
|
if (BrCond.getOpcode() == ISD::BR) {
|
||||||
if (!DisableCorrectBranchFolding)
|
CurMBB->removeSuccessor(CB.FalseBB);
|
||||||
CurMBB->removeSuccessor(CB.FalseBB);
|
|
||||||
DAG.setRoot(BrCond);
|
DAG.setRoot(BrCond);
|
||||||
} else {
|
} else {
|
||||||
// Otherwise, go ahead and insert the false branch.
|
// Otherwise, go ahead and insert the false branch.
|
||||||
if (BrCond == getControlRoot())
|
if (BrCond == getControlRoot())
|
||||||
if (!DisableCorrectBranchFolding)
|
CurMBB->removeSuccessor(CB.TrueBB);
|
||||||
CurMBB->removeSuccessor(CB.TrueBB);
|
|
||||||
|
|
||||||
if (CB.FalseBB == NextBlock)
|
if (CB.FalseBB == NextBlock)
|
||||||
DAG.setRoot(BrCond);
|
DAG.setRoot(BrCond);
|
||||||
|
Reference in New Issue
Block a user