Lines Matching defs:CondInst
1052 Instruction *CondInst = dyn_cast<Instruction>(Condition);
1055 if (!CondInst) {
1063 Value *CondWithoutFreeze = CondInst;
1064 if (auto *FI = dyn_cast<FreezeInst>(CondInst))
1077 // We can safely replace *some* uses of the CondInst if it has
1116 if (PHINode *PN = dyn_cast<PHINode>(CondInst))
1123 if (processThreadableEdges(CondInst, BB, Preference, Terminator))
1133 if (CondInst->getOpcode() == Instruction::Xor &&
1134 CondInst->getParent() == BB && isa<BranchInst>(BB->getTerminator()))
1135 return processBranchOnXOR(cast<BinaryOperator>(CondInst));
1655 if (auto *CondInst = dyn_cast<Instruction>(Cond)) {
1656 if (CondInst->use_empty() && !CondInst->mayHaveSideEffects())
1657 CondInst->eraseFromParent();
1658 // We can safely replace *some* uses of the CondInst if it has
1666 replaceFoldableUses(CondInst, OnlyVal, BB);