[llvm] [WebAssembly] Fold unsigned offset (PR #145829)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 1 11:11:14 PDT 2025
================
@@ -60,6 +60,31 @@ define i32 @load_i32_with_folded_gep_offset_nuw(ptr %p) {
ret i32 %t
}
+ at global_data = hidden local_unnamed_addr global [12 x i8] c"Hello world\00", align 1
+
+define hidden signext i8 @global_load_i32_with_folded_gep_offset_nonconst_nuw(i32 noundef %idx) local_unnamed_addr {
----------------
lukel97 wrote:
We should scrub up the tests to keep them as in line with existing ones as possible
```suggestion
define i32 @load_i32_global_with_folded_gep_offset_nonconst_nuw(i32 %idx) {
```
https://github.com/llvm/llvm-project/pull/145829
More information about the llvm-commits
mailing list