[WebAssembly][test] Clean up ir-locals.ll after opaque pointer conversion
authorAlex Bradbury <asb@igalia.com>
Sun, 26 Feb 2023 19:17:06 +0000 (19:17 +0000)
committerAlex Bradbury <asb@igalia.com>
Sun, 26 Feb 2023 19:17:06 +0000 (19:17 +0000)
The `tyname_cell` definitions at the top are now all the same, so
replace them with a single `alloca_cell` type.

llvm/test/CodeGen/WebAssembly/ir-locals.ll

index ff67fb0..9e72ae5 100644 (file)
@@ -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
 }