Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp1120 BasicBlock *NonConstBB = nullptr; in foldOpIntoPhi() local
1129 if (NonConstBB) return nullptr; // More than one non-const value. in foldOpIntoPhi()
1131 NonConstBB = PN->getIncomingBlock(i); in foldOpIntoPhi()
1136 if (cast<Instruction>(InVal)->getParent() == NonConstBB) in foldOpIntoPhi()
1142 if (isPotentiallyReachable(I.getParent(), NonConstBB, nullptr, &DT, LI)) in foldOpIntoPhi()
1151 if (NonConstBB != nullptr) { in foldOpIntoPhi()
1152 BranchInst *BI = dyn_cast<BranchInst>(NonConstBB->getTerminator()); in foldOpIntoPhi()
1153 if (!BI || !BI->isUnconditional() || !DT.isReachableFromEntry(NonConstBB)) in foldOpIntoPhi()
1164 if (NonConstBB) in foldOpIntoPhi()
1165 Builder.SetInsertPoint(NonConstBB->getTerminator()); in foldOpIntoPhi()
[all …]