Lines Matching defs:II
47 static Value *lowerIsConstantIntrinsic(IntrinsicInst *II) {
48 if (auto *C = dyn_cast<Constant>(II->getOperand(0)))
50 return ConstantInt::getTrue(II->getType());
51 return ConstantInt::getFalse(II->getType());
54 static bool replaceConditionalBranchesOnConstant(Instruction *II,
59 replaceAndRecursivelySimplify(II, NewValue, nullptr, nullptr, nullptr,
115 IntrinsicInst *II = dyn_cast<IntrinsicInst>(&I);
116 if (!II)
118 switch (II->getIntrinsicID()) {
134 IntrinsicInst *II = dyn_cast<IntrinsicInst>(&*VH);
135 if (!II)
138 switch (II->getIntrinsicID()) {
142 NewValue = lowerIsConstantIntrinsic(II);
143 LLVM_DEBUG(dbgs() << "Folding " << *II << " to " << *NewValue << "\n");
147 NewValue = lowerObjectSizeCall(II, DL, &TLI, true);
148 LLVM_DEBUG(dbgs() << "Folding " << *II << " to " << *NewValue << "\n");
153 II, NewValue, DTU ? &*DTU : nullptr);