Skip to content

Commit 31f6608

Browse files
Addressing reviewers (3)
1 parent 4b6ed67 commit 31f6608

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/CodeGen/ReplaceWithVeclib.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,11 @@ static void replaceWithTLIFunction(Instruction &I, VFInfo &Info,
100100
/// works when \p I is a call to vectorized intrinsic or the frem instruction.
101101
static bool replaceWithCallToVeclib(const TargetLibraryInfo &TLI,
102102
Instruction &I) {
103+
// At the moment VFABI assumes the return type is always widened unless it is
104+
// a void type.
103105
auto *VTy = dyn_cast<VectorType>(I.getType());
104106
ElementCount EC(VTy ? VTy->getElementCount() : ElementCount::getFixed(0));
107+
105108
// Compute the argument types of the corresponding scalar call and the scalar
106109
// function name. For calls, it additionally finds the function to replace
107110
// and checks that all vector operands match the previously found EC.

0 commit comments

Comments
 (0)