remove a little hack I did for the old isel, not needed
authorChris Lattner <sabre@nondot.org>
Mon, 1 Mar 2010 22:51:11 +0000 (22:51 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 1 Mar 2010 22:51:11 +0000 (22:51 +0000)
now that it is gone.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97516 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelDAGToDAG.cpp
utils/TableGen/DAGISelMatcherEmitter.cpp

index 40b12c7767a61f3949af468c26f45eb5f3fb0ff1..586d6efaa67ea977b993483b8d53610ee8d74bb5 100644 (file)
@@ -198,26 +198,12 @@ namespace {
                        SDValue &Scale, SDValue &Index, SDValue &Disp);
     bool SelectTLSADDRAddr(SDNode *Op, SDValue N, SDValue &Base,
                        SDValue &Scale, SDValue &Index, SDValue &Disp);
-    bool SelectScalarSSELoadXXX(SDNode *Root, SDValue N,
+    bool SelectScalarSSELoad(SDNode *Root, SDValue N,
                              SDValue &Base, SDValue &Scale,
                              SDValue &Index, SDValue &Disp,
                              SDValue &Segment,
                              SDValue &NodeWithChain);
     
-    // FIXME: Remove this hacky wrapper.
-    bool SelectScalarSSELoad(SDNode *Root, SDValue N, SDValue &Base,
-                             SDValue &Scale, SDValue &Index,
-                             SDValue &Disp, SDValue &Segment,
-                             SDValue &PatternChainResult,
-                             SDValue &PatternInputChain) {
-      SDValue Tmp;
-      if (!SelectScalarSSELoadXXX(Root, N, Base, Scale, Index, Disp, Segment,
-                                  Tmp))
-        return false;
-      PatternInputChain = Tmp.getOperand(0);
-      PatternChainResult = Tmp.getValue(1);
-      return true;
-    }
     bool TryFoldLoad(SDNode *P, SDValue N,
                      SDValue &Base, SDValue &Scale,
                      SDValue &Index, SDValue &Disp,
@@ -1317,7 +1303,7 @@ bool X86DAGToDAGISel::SelectAddr(SDNode *Op, SDValue N, SDValue &Base,
 /// We also return:
 ///   PatternChainNode: this is the matched node that has a chain input and
 ///   output.
-bool X86DAGToDAGISel::SelectScalarSSELoadXXX(SDNode *Root,
+bool X86DAGToDAGISel::SelectScalarSSELoad(SDNode *Root,
                                           SDValue N, SDValue &Base,
                                           SDValue &Scale, SDValue &Index,
                                           SDValue &Disp, SDValue &Segment,
index 7df62a6fa9775d162430bf33f0042e68b103a3a0..36d6f149fdfb9311941ec841b7187dd22f3e223e 100644 (file)
@@ -608,10 +608,6 @@ void MatcherTableEmitter::EmitPredicateFunctions(const CodeGenDAGPatterns &CGP,
       OS << "    Result.resize(Result.size()+" << NumOps << ");\n";
       OS << "    return "  << P.getSelectFunc();
 
-      // FIXME: Temporary hack until old isel dies.
-      if (P.hasProperty(SDNPHasChain))
-        OS << "XXX";
-      
       OS << "(Root, N";
       for (unsigned i = 0; i != NumOps; ++i)
         OS << ", Result[Result.size()-" << (NumOps-i) << ']';