Skip to content

Commit 36899d6

Browse files
authored
[CloneFunction] Remove check that is no longer necessary (#92577)
We do not need to concern ourselves with CGSCC since all remaining CG related updates went away in fa6ea7a as pointed out by @nikic in #87963 (comment).
1 parent 82c5d35 commit 36899d6

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

llvm/lib/Transforms/Utils/CloneFunction.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -825,13 +825,6 @@ void llvm::CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc,
825825
if (!NewI)
826826
continue;
827827

828-
// Skip over non-intrinsic callsites, we don't want to remove any nodes
829-
// from the CGSCC.
830-
CallBase *CB = dyn_cast<CallBase>(NewI);
831-
if (CB && CB->getCalledFunction() &&
832-
!CB->getCalledFunction()->isIntrinsic())
833-
continue;
834-
835828
if (Value *V = simplifyInstruction(NewI, DL)) {
836829
NewI->replaceAllUsesWith(V);
837830

0 commit comments

Comments
 (0)