Remove the temporary option: -no-isel-fold-inflight

llvm-svn: 28012
This commit is contained in:
Evan Cheng 2006-04-28 18:54:11 +00:00
parent d577ce4c4a
commit 9f21c2daf4
3 changed files with 1 additions and 14 deletions

View File

@ -40,7 +40,6 @@ public:
SSARegMap *RegMap; SSARegMap *RegMap;
SelectionDAG *CurDAG; SelectionDAG *CurDAG;
MachineBasicBlock *BB; MachineBasicBlock *BB;
bool FoldNodeInFlight;
SelectionDAGISel(TargetLowering &tli) : TLI(tli), JT(0,0,0,0) {} SelectionDAGISel(TargetLowering &tli) : TLI(tli), JT(0,0,0,0) {}

View File

@ -58,14 +58,6 @@ ViewSchedDAGs("view-sched-dags", cl::Hidden,
static const bool ViewISelDAGs = 0, ViewSchedDAGs = 0; static const bool ViewISelDAGs = 0, ViewSchedDAGs = 0;
#endif #endif
namespace {
static cl::opt<bool>
NoFoldNodeInFlight(
"no-isel-fold-inflight",
cl::Hidden,
cl::desc("Do not attempt to fold a node even if it is being selected"));
}
// Scheduling heuristics // Scheduling heuristics
enum SchedHeuristics { enum SchedHeuristics {
defaultScheduling, // Let the target specify its preference. defaultScheduling, // Let the target specify its preference.
@ -3177,9 +3169,6 @@ void SelectionDAGISel::CodeGenAndEmitDAG(SelectionDAG &DAG) {
if (ViewISelDAGs) DAG.viewGraph(); if (ViewISelDAGs) DAG.viewGraph();
// TEMPORARY.
FoldNodeInFlight = !NoFoldNodeInFlight;
// Third, instruction select all of the operations to machine code, adding the // Third, instruction select all of the operations to machine code, adding the
// code to the MachineBasicBlock. // code to the MachineBasicBlock.
InstructionSelectBasicBlock(DAG); InstructionSelectBasicBlock(DAG);

View File

@ -2131,8 +2131,7 @@ public:
if (!isRoot) { if (!isRoot) {
const SDNodeInfo &CInfo = ISE.getSDNodeInfo(N->getOperator()); const SDNodeInfo &CInfo = ISE.getSDNodeInfo(N->getOperator());
// Not in flight? // Not in flight?
emitCheck("(FoldNodeInFlight || InFlightSet.count(" emitCheck("InFlightSet.count(" + RootName + ".Val) == 0");
+ RootName + ".Val) == 0)");
// Multiple uses of actual result? // Multiple uses of actual result?
emitCheck(RootName + ".hasOneUse()"); emitCheck(RootName + ".hasOneUse()");
EmittedUseCheck = true; EmittedUseCheck = true;