We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f704782 commit b85387dCopy full SHA for b85387d
llvm/lib/Transforms/Utils/SCCPSolver.cpp
@@ -771,9 +771,9 @@ class SCCPInstVisitor : public InstVisitor<SCCPInstVisitor> {
771
772
for (BasicBlock &BB : F) {
773
for (Instruction &Inst : llvm::make_early_inc_range(BB)) {
774
- if (It->second->getPredicateInfoFor(&Inst)) {
775
- if (auto *II = dyn_cast<IntrinsicInst>(&Inst)) {
776
- if (II->getIntrinsicID() == Intrinsic::ssa_copy) {
+ if (auto *II = dyn_cast<IntrinsicInst>(&Inst)) {
+ if (II->getIntrinsicID() == Intrinsic::ssa_copy) {
+ if (It->second->getPredicateInfoFor(&Inst)) {
777
Value *Op = II->getOperand(0);
778
Inst.replaceAllUsesWith(Op);
779
Inst.eraseFromParent();
0 commit comments