Home
last modified time | relevance | path

Searched refs:NonConstBB (Results 1 – 1 of 1) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp1175 BasicBlock *NonConstBB = nullptr; in foldOpIntoPhi() local
1186 if (NonConstBB) return nullptr; // More than one non-const value. in foldOpIntoPhi()
1188 NonConstBB = PN->getIncomingBlock(i); in foldOpIntoPhi()
1193 if (cast<Instruction>(InVal)->getParent() == NonConstBB) in foldOpIntoPhi()
1200 if (isPotentiallyReachable(PN->getParent(), NonConstBB, nullptr, &DT, LI)) in foldOpIntoPhi()
1209 if (NonConstBB != nullptr) { in foldOpIntoPhi()
1210 BranchInst *BI = dyn_cast<BranchInst>(NonConstBB->getTerminator()); in foldOpIntoPhi()
1211 if (!BI || !BI->isUnconditional() || !DT.isReachableFromEntry(NonConstBB)) in foldOpIntoPhi()
1222 if (NonConstBB) in foldOpIntoPhi()
1223 Builder.SetInsertPoint(NonConstBB->getTerminator()); in foldOpIntoPhi()
[all …]