Do not use computationally expensive scheduling heuristics with -fast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52971 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp
index 895c2cf..786e920 100644
--- a/lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/lib/Target/X86/X86ISelDAGToDAG.cpp
@@ -90,10 +90,6 @@
/// register should set this to true.
bool ContainsFPCode;
- /// FastISel - Enable fast(er) instruction selection.
- ///
- bool FastISel;
-
/// TM - Keep a reference to X86TargetMachine.
///
X86TargetMachine &TM;
@@ -116,8 +112,8 @@
public:
X86DAGToDAGISel(X86TargetMachine &tm, bool fast)
- : SelectionDAGISel(X86Lowering),
- ContainsFPCode(false), FastISel(fast), TM(tm),
+ : SelectionDAGISel(X86Lowering, fast),
+ ContainsFPCode(false), TM(tm),
X86Lowering(*TM.getTargetLowering()),
Subtarget(&TM.getSubtarget<X86Subtarget>()) {}