[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Evan Cheng
evan.cheng at apple.com
Thu Apr 27 19:09:34 PDT 2006
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAGISel.cpp updated: 1.228 -> 1.229
---
Log message:
Added a temporary option -no-isel-fold-inflight to control whether a "inflight"
node can be folded.
---
Diffs of the changes: (+12 -1)
SelectionDAGISel.cpp | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletion(-)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.228 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.229
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.228 Thu Apr 27 03:29:42 2006
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Thu Apr 27 21:09:19 2006
@@ -58,6 +58,14 @@
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.
@@ -3170,7 +3178,10 @@
DAG.Combine(true);
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);
More information about the llvm-commits
mailing list