[llvm] r227156 - Grab the TargetLowering info from the DAG rather than querying for

Eric Christopher echristo at gmail.com
Mon Jan 26 17:01:36 PST 2015


Author: echristo
Date: Mon Jan 26 19:01:36 2015
New Revision: 227156

URL: http://llvm.org/viewvc/llvm-project?rev=227156&view=rev
Log:
Grab the TargetLowering info from the DAG rather than querying for
a subtarget.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp?rev=227156&r1=227155&r2=227156&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp Mon Jan 26 19:01:36 2015
@@ -5699,9 +5699,8 @@ SelectionDAGBuilder::lowerInvokable(Targ
 
     CLI.setChain(getRoot());
   }
-
-  const TargetLowering *TLI = TM.getSubtargetImpl()->getTargetLowering();
-  std::pair<SDValue, SDValue> Result = TLI->LowerCallTo(CLI);
+  const TargetLowering &TLI = DAG.getTargetLoweringInfo();
+  std::pair<SDValue, SDValue> Result = TLI.LowerCallTo(CLI);
 
   assert((CLI.IsTailCall || Result.second.getNode()) &&
          "Non-null chain expected with non-tail call!");





More information about the llvm-commits mailing list