[llvm] [WebAssembly] Fold unsigned offset (PR #145829)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 2 08:52:10 PDT 2025


================
@@ -66,18 +66,18 @@ try.cont:                                         ; preds = %entry, %catch.start
 
 ; CHECK-LABEL: test1:
 ; In static linking, we load GCC_except_table as a constant directly.
-; NOPIC:      i[[PTR]].const  $push[[CONTEXT:.*]]=, __wasm_lpad_context
+; NOPIC:      i[[PTR]].const  $push[[CONTEXT:.*]]=, [[ALIGNMENT]]
 ; NOPIC-NEXT: i[[PTR]].const  $push[[EXCEPT_TABLE:.*]]=, GCC_except_table1
-; NOPIC-NEXT: i[[PTR]].store  {{[48]}}($pop[[CONTEXT]]), $pop[[EXCEPT_TABLE]]
+; NOPIC-NEXT: i[[PTR]].store  __wasm_lpad_context($pop[[CONTEXT]]), $pop[[EXCEPT_TABLE]]
----------------
badumbatish wrote:

i'll push the changes to current nits (excluding swapping) but lmk if we'd like to pursue this avenue

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


More information about the llvm-commits mailing list