Lines Matching defs:CondInst
1053 Instruction *CondInst = dyn_cast<Instruction>(Condition);
1056 if (!CondInst) {
1064 Value *CondWithoutFreeze = CondInst;
1065 if (auto *FI = dyn_cast<FreezeInst>(CondInst))
1078 // We can safely replace *some* uses of the CondInst if it has
1117 if (PHINode *PN = dyn_cast<PHINode>(CondInst))
1124 if (processThreadableEdges(CondInst, BB, Preference, Terminator))
1134 if (CondInst->getOpcode() == Instruction::Xor &&
1135 CondInst->getParent() == BB && isa<BranchInst>(BB->getTerminator()))
1136 return processBranchOnXOR(cast<BinaryOperator>(CondInst));
1656 if (auto *CondInst = dyn_cast<Instruction>(Cond)) {
1657 if (CondInst->use_empty() && !CondInst->mayHaveSideEffects())
1658 CondInst->eraseFromParent();
1659 // We can safely replace *some* uses of the CondInst if it has
1667 replaceFoldableUses(CondInst, OnlyVal, BB);