[llvm] [WebAssembly] Correctly consider signext/zext arg flags at function declaration (PR #77281)

Juneyoung Lee via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 8 00:06:36 PST 2024


================
@@ -839,9 +839,11 @@ bool WebAssemblyFastISel::selectCall(const Instruction *I) {
 
     unsigned Reg;
 
-    if (Attrs.hasParamAttr(I, Attribute::SExt))
+    if (Attrs.hasParamAttr(I, Attribute::SExt) ||
+        (IsDirect && Func->hasParamAttribute(I, Attribute::SExt)))
----------------
aqjune wrote:

IsDirect is true if the function call isn't an indirect call.

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


More information about the llvm-commits mailing list