[llvm] r230038 - Get the function specific subtarget.

Eric Christopher echristo at gmail.com
Fri Feb 20 10:44:17 PST 2015


Author: echristo
Date: Fri Feb 20 12:44:17 2015
New Revision: 230038

URL: http://llvm.org/viewvc/llvm-project?rev=230038&view=rev
Log:
Get the function specific subtarget.

Modified:
    llvm/trunk/lib/CodeGen/Analysis.cpp

Modified: llvm/trunk/lib/CodeGen/Analysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/Analysis.cpp?rev=230038&r1=230037&r2=230038&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/Analysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/Analysis.cpp Fri Feb 20 12:44:17 2015
@@ -518,8 +518,9 @@ bool llvm::isInTailCallPosition(Immutabl
         return false;
     }
 
+  const Function *F = ExitBB->getParent();
   return returnTypeIsEligibleForTailCall(
-      ExitBB->getParent(), I, Ret, *TM.getSubtargetImpl()->getTargetLowering());
+      F, I, Ret, *TM.getSubtargetImpl(*F)->getTargetLowering());
 }
 
 bool llvm::returnTypeIsEligibleForTailCall(const Function *F,





More information about the llvm-commits mailing list