diff options
author | Danila Malyutin <danilaml@users.noreply.github.com> | 2024-05-20 17:51:32 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-20 17:51:32 +0400 |
commit | 36899d693d91719e7e6cd0f0ee4cf579111b8509 (patch) | |
tree | 264aec26bd8a0d40f289f2f48528d8999c9f3a9b /llvm/lib/Transforms/Utils/CloneFunction.cpp | |
parent | 82c5d350d200ccc5365d40eac187b9ec967af727 (diff) | |
download | llvm-36899d693d91719e7e6cd0f0ee4cf579111b8509.zip llvm-36899d693d91719e7e6cd0f0ee4cf579111b8509.tar.gz llvm-36899d693d91719e7e6cd0f0ee4cf579111b8509.tar.bz2 |
[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 fa6ea7a419f37befbed04368bcb8af4c718facbb as
pointed out by @nikic in
https://github.com/llvm/llvm-project/pull/87963#issuecomment-2113937182.
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/CloneFunction.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp index 9811836..1fef8bc 100644 --- a/llvm/lib/Transforms/Utils/CloneFunction.cpp +++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp @@ -825,13 +825,6 @@ void llvm::CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc, if (!NewI) continue; - // Skip over non-intrinsic callsites, we don't want to remove any nodes - // from the CGSCC. - CallBase *CB = dyn_cast<CallBase>(NewI); - if (CB && CB->getCalledFunction() && - !CB->getCalledFunction()->isIntrinsic()) - continue; - if (Value *V = simplifyInstruction(NewI, DL)) { NewI->replaceAllUsesWith(V); |