Lines Matching defs:II
46 static Value *lowerIsConstantIntrinsic(IntrinsicInst *II) {
47 if (auto *C = dyn_cast<Constant>(II->getOperand(0)))
49 return ConstantInt::getTrue(II->getType());
50 return ConstantInt::getFalse(II->getType());
53 static bool replaceConditionalBranchesOnConstant(Instruction *II,
58 replaceAndRecursivelySimplify(II, NewValue, nullptr, nullptr, nullptr,
114 IntrinsicInst *II = dyn_cast<IntrinsicInst>(&I);
115 if (!II)
117 switch (II->getIntrinsicID()) {
133 IntrinsicInst *II = dyn_cast<IntrinsicInst>(&*VH);
134 if (!II)
137 switch (II->getIntrinsicID()) {
141 NewValue = lowerIsConstantIntrinsic(II);
142 LLVM_DEBUG(dbgs() << "Folding " << *II << " to " << *NewValue << "\n");
146 NewValue = lowerObjectSizeCall(II, DL, &TLI, true);
147 LLVM_DEBUG(dbgs() << "Folding " << *II << " to " << *NewValue << "\n");
152 II, NewValue, DTU ? &*DTU : nullptr);