28 F.getParent(), Intrinsic::experimental_widenable_condition);
29 if (!WCDecl || WCDecl->use_empty())
37 for (
auto *U : WCDecl->users())
38 if (
auto *CI = dyn_cast<CallInst>(U))
39 if (CI->getFunction() == &
F)
45 for (
auto *CI : ToLower) {
47 CI->eraseFromParent();
static bool lowerWidenableCondition(Function &F)
This file defines the SmallVector class.
A container for analyses that lazily runs them and caches their results.
static ConstantInt * getTrue(LLVMContext &Context)
A set of analyses that are preserved following a run of a transformation pass.
static PreservedAnalyses none()
Convenience factory function for the empty preserved set.
static PreservedAnalyses all()
Construct a special preserved set that preserves all passes.
void push_back(const T &Elt)
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
Function * getDeclarationIfExists(Module *M, ID id, ArrayRef< Type * > Tys, FunctionType *FT=nullptr)
This version supports overloaded intrinsics.
This is an optimization pass for GlobalISel generic memory operations.
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)