Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,7 @@ void VPIRPhi::print(raw_ostream &O, const Twine &Indent,

void VPWidenCallRecipe::execute(VPTransformState &State) {
assert(State.VF.isVector() && "not widening");
assert(Variant != nullptr && "Can't create vector function.");

FunctionType *VFTy = Variant->getFunctionType();
// Add return type if intrinsic is overloaded on it.
Expand All @@ -1223,15 +1224,14 @@ void VPWidenCallRecipe::execute(VPTransformState &State) {
Args.push_back(Arg);
}

assert(Variant != nullptr && "Can't create vector function.");

auto *CI = cast_or_null<CallInst>(getUnderlyingValue());
SmallVector<OperandBundleDef, 1> OpBundles;
if (CI)
CI->getOperandBundlesAsDefs(OpBundles);

CallInst *V = State.Builder.CreateCall(Variant, Args, OpBundles);
applyFlags(*V);
V->setCallingConv(Variant->getCallingConv());

if (!V->getType()->isVoidTy())
State.set(this, V);
Expand Down
Loading
Loading