[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 03:01:11 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:

Is it safe to just always remove the attributes if doing so would lead to incorrect results? Do the vector result and arguments now need explicit sign or zero-extending?

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


More information about the llvm-commits mailing list