Lines Matching defs:pred
2531 Value *pred = i->getPredicate();
2541 i->setPredicate(i->cc, pred);
3285 void predicateInstructions(BasicBlock *, Value *pred, CondCode cc);
3287 inline bool isConstantCondition(Value *pred);
3288 inline bool mayPredicate(const Instruction *, const Value *pred) const;
3295 FlatteningPass::isConstantCondition(Value *pred)
3297 Instruction *insn = pred->getUniqueInsn();
3345 Value *pred = term->getPredicate();
3349 if (pred && pred->refCount() == 0) {
3350 Instruction *pSet = pred->getUniqueInsn();
3351 pred->join->reg.data.id = -1; // deallocate
3358 FlatteningPass::predicateInstructions(BasicBlock *bb, Value *pred, CondCode cc)
3364 i->setPredicate(cc, pred);
3370 FlatteningPass::mayPredicate(const Instruction *insn, const Value *pred) const
3376 if (!prog->getTarget()->mayPredicate(insn, pred))
3379 if (insn->getDef(d)->equals(pred))
3481 Value *pred = bb->getExit()->getPredicate();
3482 assert(pred);
3484 if (isConstantCondition(pred))
3492 if (!mayPredicate(insn, pred))
3502 if (!mayPredicate(insn, pred))
3509 predicateInstructions(bL, pred, bb->getExit()->cc);
3511 predicateInstructions(bR, pred, inverseCondCode(bb->getExit()->cc));