[llvm] [InjectTLIMappings] Remove signext/zeroext attributes from vector functions. (PR #80546)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 22 06:14:28 PST 2024
================
@@ -56,6 +69,8 @@ static void addVariantDeclaration(CallInst &CI, const ElementCount &VF,
Function *VecFunc =
Function::Create(VectorFTy, Function::ExternalLinkage, VFName, M);
VecFunc->copyAttributesFrom(CI.getCalledFunction());
+ removeIllegalAttributes(VecFunc, VectorFTy);
----------------
david-arm wrote:
Sure, I understand. But then is it safe to even use a vector mapping in that case? I'm just asking if perhaps this is the wrong fix, and really we shouldn't be vectorising at all?
https://github.com/llvm/llvm-project/pull/80546
More information about the llvm-commits
mailing list