[llvm] [InjectTLIMappings] Remove signext/zeroext attributes from vector functions. (PR #80546)

Yeting Kuo via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 22 05:46:52 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);
----------------
yetingk wrote:

signext and zeroext attribute is illegal to vector attributes. It will cause ICE `Attribute 'signext' applied to incompatible type!`.

https://github.com/llvm/llvm-project/pull/80546


More information about the llvm-commits mailing list