forked from OSchip/llvm-project
[CallSite removal][SimpleLoopUnswitch] Use CallBase instead of CallSite. NFC
Differential Revision: https://reviews.llvm.org/D78227
This commit is contained in:
parent
10070e31a5
commit
592d8e7d75
|
@ -2656,8 +2656,8 @@ unswitchBestCondition(Loop &L, DominatorTree &DT, LoopInfo &LI,
|
|||
|
||||
if (I.getType()->isTokenTy() && I.isUsedOutsideOfBlock(BB))
|
||||
return false;
|
||||
if (auto CS = CallSite(&I))
|
||||
if (CS.isConvergent() || CS.cannotDuplicate())
|
||||
if (auto *CB = dyn_cast<CallBase>(&I))
|
||||
if (CB->isConvergent() || CB->cannotDuplicate())
|
||||
return false;
|
||||
|
||||
Cost += TTI.getUserCost(&I);
|
||||
|
|
Loading…
Reference in New Issue