aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-04-28 18:54:11 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-04-28 18:54:11 +0000
commit55d0fa1bfaec665c949b1069225bbc23ca7782bc (patch)
tree84c9628aa84c664e5849aaec3de467ef26d48e56
parent43f3bd310b2e41335571ee10953ffaeeef16d2e3 (diff)
Remove the temporary option: -no-isel-fold-inflight
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28012 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/SelectionDAGISel.h1
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp11
-rw-r--r--utils/TableGen/DAGISelEmitter.cpp3
3 files changed, 1 insertions, 14 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGISel.h b/include/llvm/CodeGen/SelectionDAGISel.h
index 52d85f66d3..6ebcda35db 100644
--- a/include/llvm/CodeGen/SelectionDAGISel.h
+++ b/include/llvm/CodeGen/SelectionDAGISel.h
@@ -40,7 +40,6 @@ public:
SSARegMap *RegMap;
SelectionDAG *CurDAG;
MachineBasicBlock *BB;
- bool FoldNodeInFlight;
SelectionDAGISel(TargetLowering &tli) : TLI(tli), JT(0,0,0,0) {}
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index fe9398f373..d3991a6ad7 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -58,14 +58,6 @@ ViewSchedDAGs("view-sched-dags", cl::Hidden,
static const bool ViewISelDAGs = 0, ViewSchedDAGs = 0;
#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
enum SchedHeuristics {
defaultScheduling, // Let the target specify its preference.
@@ -3177,9 +3169,6 @@ void SelectionDAGISel::CodeGenAndEmitDAG(SelectionDAG &DAG) {
if (ViewISelDAGs) DAG.viewGraph();
- // TEMPORARY.
- FoldNodeInFlight = !NoFoldNodeInFlight;
-
// Third, instruction select all of the operations to machine code, adding the
// code to the MachineBasicBlock.
InstructionSelectBasicBlock(DAG);
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp
index b4317ff4fa..5f44262140 100644
--- a/utils/TableGen/DAGISelEmitter.cpp
+++ b/utils/TableGen/DAGISelEmitter.cpp
@@ -2131,8 +2131,7 @@ public:
if (!isRoot) {
const SDNodeInfo &CInfo = ISE.getSDNodeInfo(N->getOperator());
// Not in flight?
- emitCheck("(FoldNodeInFlight || InFlightSet.count("
- + RootName + ".Val) == 0)");
+ emitCheck("InFlightSet.count(" + RootName + ".Val) == 0");
// Multiple uses of actual result?
emitCheck(RootName + ".hasOneUse()");
EmittedUseCheck = true;