Lines Matching defs:CondInst
1079 Instruction *CondInst = dyn_cast<Instruction>(Condition);
1082 if (!CondInst) {
1089 if (CmpInst *CondCmp = dyn_cast<CmpInst>(CondInst)) {
1116 // We can safely replace *some* uses of the CondInst if it has
1149 Value *SimplifyValue = CondInst;
1161 if (PHINode *PN = dyn_cast<PHINode>(CondInst))
1168 if (ProcessThreadableEdges(CondInst, BB, Preference, Terminator))
1173 if (PHINode *PN = dyn_cast<PHINode>(CondInst))
1178 if (CondInst->getOpcode() == Instruction::Xor &&
1179 CondInst->getParent() == BB && isa<BranchInst>(BB->getTerminator()))
1180 return ProcessBranchOnXOR(cast<BinaryOperator>(CondInst));
1666 if (auto *CondInst = dyn_cast<Instruction>(Cond)) {
1667 if (CondInst->use_empty() && !CondInst->mayHaveSideEffects())
1668 CondInst->eraseFromParent();
1669 // We can safely replace *some* uses of the CondInst if it has
1677 CondInst->getParent() == BB)
1678 ReplaceFoldableUses(CondInst, OnlyVal);