[llvm] 1ae8597 - [WebAssembly][test] Clean up ir-locals.ll after opaque pointer conversion
Alex Bradbury via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 26 11:18:13 PST 2023
Author: Alex Bradbury
Date: 2023-02-26T19:17:06Z
New Revision: 1ae859753c06c480f05baa31a871b998c2c2acd2
URL: https://github.com/llvm/llvm-project/commit/1ae859753c06c480f05baa31a871b998c2c2acd2
DIFF: https://github.com/llvm/llvm-project/commit/1ae859753c06c480f05baa31a871b998c2c2acd2.diff
LOG: [WebAssembly][test] Clean up ir-locals.ll after opaque pointer conversion
The `tyname_cell` definitions at the top are now all the same, so
replace them with a single `alloca_cell` type.
Added:
Modified:
llvm/test/CodeGen/WebAssembly/ir-locals.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/WebAssembly/ir-locals.ll b/llvm/test/CodeGen/WebAssembly/ir-locals.ll
index ff67fb075874..9e72ae5c4354 100644
--- a/llvm/test/CodeGen/WebAssembly/ir-locals.ll
+++ b/llvm/test/CodeGen/WebAssembly/ir-locals.ll
@@ -1,10 +1,7 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s --mtriple=wasm32-unknown-unknown | FileCheck %s
-%i32_cell = type ptr addrspace(1)
-%i64_cell = type ptr addrspace(1)
-%f32_cell = type ptr addrspace(1)
-%f64_cell = type ptr addrspace(1)
+%alloca_cell = type ptr addrspace(1)
; We have a set of tests in which we set a local and then reload the
; local. If the load immediately follows the set, the DAG combiner will
@@ -24,9 +21,9 @@ define i32 @ir_local_i32(i32 %arg) {
; CHECK-NEXT: local.get 1
; CHECK-NEXT: # fallthrough-return
%retval = alloca i32, addrspace(1)
- store i32 %arg, %i32_cell %retval
+ store i32 %arg, %alloca_cell %retval
call void @inhibit_store_to_load_forwarding()
- %reloaded = load i32, %i32_cell %retval
+ %reloaded = load i32, %alloca_cell %retval
ret i32 %reloaded
}
@@ -41,9 +38,9 @@ define i64 @ir_local_i64(i64 %arg) {
; CHECK-NEXT: local.get 1
; CHECK-NEXT: # fallthrough-return
%retval = alloca i64, addrspace(1)
- store i64 %arg, %i64_cell %retval
+ store i64 %arg, %alloca_cell %retval
call void @inhibit_store_to_load_forwarding()
- %reloaded = load i64, %i64_cell %retval
+ %reloaded = load i64, %alloca_cell %retval
; See note in ir_local_i32.
ret i64 %reloaded
}
@@ -59,9 +56,9 @@ define float @ir_local_f32(float %arg) {
; CHECK-NEXT: local.get 1
; CHECK-NEXT: # fallthrough-return
%retval = alloca float, addrspace(1)
- store float %arg, %f32_cell %retval
+ store float %arg, %alloca_cell %retval
call void @inhibit_store_to_load_forwarding()
- %reloaded = load float, %f32_cell %retval
+ %reloaded = load float, %alloca_cell %retval
ret float %reloaded
}
@@ -76,9 +73,9 @@ define double @ir_local_f64(double %arg) {
; CHECK-NEXT: local.get 1
; CHECK-NEXT: # fallthrough-return
%retval = alloca double, addrspace(1)
- store double %arg, %f64_cell %retval
+ store double %arg, %alloca_cell %retval
call void @inhibit_store_to_load_forwarding()
- %reloaded = load double, %f64_cell %retval
+ %reloaded = load double, %alloca_cell %retval
ret double %reloaded
}
More information about the llvm-commits
mailing list