mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
Avoid "checking a pointer after dereferencing" warning. NFCI.
Reported in https://www.viva64.com/en/b/0629/ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359473 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -169,7 +169,6 @@ static bool isWrapperOnlyCall(CallSite CS) {
|
||||
InlineCost AMDGPUInliner::getInlineCost(CallSite CS) {
|
||||
Function *Callee = CS.getCalledFunction();
|
||||
Function *Caller = CS.getCaller();
|
||||
TargetTransformInfo &TTI = TTIWP->getTTI(*Callee);
|
||||
|
||||
if (!Callee || Callee->isDeclaration())
|
||||
return llvm::InlineCost::getNever("undefined callee");
|
||||
@@ -177,6 +176,7 @@ InlineCost AMDGPUInliner::getInlineCost(CallSite CS) {
|
||||
if (CS.isNoInline())
|
||||
return llvm::InlineCost::getNever("noinline");
|
||||
|
||||
TargetTransformInfo &TTI = TTIWP->getTTI(*Callee);
|
||||
if (!TTI.areInlineCompatible(Caller, Callee))
|
||||
return llvm::InlineCost::getNever("incompatible");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user