[llvm] r366140 - [WebAssembly] Simplify regcopy.mir
Heejin Ahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 15 15:22:11 PDT 2019
Author: aheejin
Date: Mon Jul 15 15:22:10 2019
New Revision: 366140
URL: http://llvm.org/viewvc/llvm-project?rev=366140&view=rev
Log:
[WebAssembly] Simplify regcopy.mir
Summary:
This deletes the ll templates from the functions because they don't need
them (mir files need ll templates only when they have function calls or
BB names that are not numbers).
This also renames the filename to `reg-copy.mir`, because I'm planning
to add some more `reg-*.mir` soon.
Reviewers: tlively
Subscribers: dschuff, sbc100, jgravelle-google, sunfish, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D64704
Added:
llvm/trunk/test/CodeGen/WebAssembly/reg-copy.mir
Removed:
llvm/trunk/test/CodeGen/WebAssembly/regcopy.mir
Added: llvm/trunk/test/CodeGen/WebAssembly/reg-copy.mir
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/WebAssembly/reg-copy.mir?rev=366140&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/WebAssembly/reg-copy.mir (added)
+++ llvm/trunk/test/CodeGen/WebAssembly/reg-copy.mir Mon Jul 15 15:22:10 2019
@@ -0,0 +1,57 @@
+# RUN: llc -mtriple=wasm32-unknown-unknown %s -o - -run-pass=postrapseudos | FileCheck %s
+
+---
+name: copy_i32
+# CHECK-LABEL: copy_i32
+body: |
+ ; CHECK-LABEL: bb.0:
+ ; CHECK-NEXT: %0:i32 = COPY_I32 %1:i32
+ ; CHECK-NEXT: RETURN_VOID
+ bb.0:
+ %0:i32 = COPY %1:i32
+ RETURN_VOID implicit-def $arguments
+...
+---
+name: copy_i64
+# CHECK-LABEL: copy_i64
+body: |
+ ; CHECK-LABEL: bb.0:
+ ; CHECK-NEXT: %0:i64 = COPY_I64 %1:i64
+ ; CHECK-NEXT: RETURN_VOID
+ bb.0:
+ %0:i64 = COPY %1:i64
+ RETURN_VOID implicit-def $arguments
+...
+---
+name: copy_f32
+# CHECK-LABEL: copy_f32
+body: |
+ ; CHECK-LABEL: bb.0:
+ ; CHECK-NEXT: %0:f32 = COPY_F32 %1:f32
+ ; CHECK-NEXT: RETURN_VOID
+ bb.0:
+ %0:f32 = COPY %1:f32
+ RETURN_VOID implicit-def $arguments
+...
+---
+name: copy_f64
+# CHECK-LABEL: copy_f64
+body: |
+ ; CHECK-LABEL: bb.0:
+ ; CHECK-NEXT: %0:f64 = COPY_F64 %1:f64
+ ; CHECK-NEXT: RETURN_VOID
+ bb.0:
+ %0:f64 = COPY %1:f64
+ RETURN_VOID implicit-def $arguments
+...
+---
+name: copy_v128
+# CHECK-LABEL: copy_v128
+body: |
+ ; CHECK-LABEL: bb.0:
+ ; CHECK-NEXT: %0:v128 = COPY_V128 %1:v128
+ ; CHECK-NEXT: RETURN_VOID
+ bb.0:
+ %0:v128 = COPY %1:v128
+ RETURN_VOID implicit-def $arguments
+...
Removed: llvm/trunk/test/CodeGen/WebAssembly/regcopy.mir
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/WebAssembly/regcopy.mir?rev=366139&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/WebAssembly/regcopy.mir (original)
+++ llvm/trunk/test/CodeGen/WebAssembly/regcopy.mir (removed)
@@ -1,80 +0,0 @@
-# RUN: llc %s -o - -run-pass=postrapseudos | FileCheck %s
---- |
- target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
- target triple = "wasm32-unknown-unknown"
-
- define void @copy_i32() {
- ret void
- }
-
- define void @copy_i64() {
- ret void
- }
-
- define void @copy_f32() {
- ret void
- }
-
- define void @copy_f64() {
- ret void
- }
-
- define void @copy_v128() {
- ret void
- }
-...
----
-name: copy_i32
-# CHECK-LABEL: copy_i32
-body: |
- ; CHECK-LABEL: bb.0:
- ; CHECK-NEXT: %0:i32 = COPY_I32 %1:i32
- ; CHECK-NEXT: RETURN_VOID
- bb.0:
- %0:i32 = COPY %1:i32
- RETURN_VOID implicit-def $arguments
-...
----
-name: copy_i64
-# CHECK-LABEL: copy_i64
-body: |
- ; CHECK-LABEL: bb.0:
- ; CHECK-NEXT: %0:i64 = COPY_I64 %1:i64
- ; CHECK-NEXT: RETURN_VOID
- bb.0:
- %0:i64 = COPY %1:i64
- RETURN_VOID implicit-def $arguments
-...
----
-name: copy_f32
-# CHECK-LABEL: copy_f32
-body: |
- ; CHECK-LABEL: bb.0:
- ; CHECK-NEXT: %0:f32 = COPY_F32 %1:f32
- ; CHECK-NEXT: RETURN_VOID
- bb.0:
- %0:f32 = COPY %1:f32
- RETURN_VOID implicit-def $arguments
-...
----
-name: copy_f64
-# CHECK-LABEL: copy_f64
-body: |
- ; CHECK-LABEL: bb.0:
- ; CHECK-NEXT: %0:f64 = COPY_F64 %1:f64
- ; CHECK-NEXT: RETURN_VOID
- bb.0:
- %0:f64 = COPY %1:f64
- RETURN_VOID implicit-def $arguments
-...
----
-name: copy_v128
-# CHECK-LABEL: copy_v128
-body: |
- ; CHECK-LABEL: bb.0:
- ; CHECK-NEXT: %0:v128 = COPY_V128 %1:v128
- ; CHECK-NEXT: RETURN_VOID
- bb.0:
- %0:v128 = COPY %1:v128
- RETURN_VOID implicit-def $arguments
-...
More information about the llvm-commits
mailing list