Lines Matching refs:CondInst
1086 Instruction *CondInst = dyn_cast<Instruction>(Condition);
1089 if (!CondInst) {
1096 if (CmpInst *CondCmp = dyn_cast<CmpInst>(CondInst)) {
1127 // We can safely replace *some* uses of the CondInst if it has
1160 Value *SimplifyValue = CondInst;
1172 if (PHINode *PN = dyn_cast<PHINode>(CondInst))
1179 if (ProcessThreadableEdges(CondInst, BB, Preference, Terminator))
1184 if (PHINode *PN = dyn_cast<PHINode>(CondInst))
1189 if (CondInst->getOpcode() == Instruction::Xor &&
1190 CondInst->getParent() == BB && isa<BranchInst>(BB->getTerminator()))
1191 return ProcessBranchOnXOR(cast<BinaryOperator>(CondInst));
1659 if (auto *CondInst = dyn_cast<Instruction>(Cond)) {
1660 if (CondInst->use_empty() && !CondInst->mayHaveSideEffects())
1661 CondInst->eraseFromParent();
1662 // We can safely replace *some* uses of the CondInst if it has
1670 CondInst->getParent() == BB)
1671 ReplaceFoldableUses(CondInst, OnlyVal);