Skip to content

Commit ed6e6af

Browse files
authored
[coro] Merge two almost identical tests (#89928)
llvm/test/Transforms/Coroutines/coro-split-musttail10.ll and coro-split-musttail11.ll were the same except for the triple. Also add a requires clause.
1 parent b9208ce commit ed6e6af

File tree

2 files changed

+7
-59
lines changed

2 files changed

+7
-59
lines changed

llvm/test/Transforms/Coroutines/coro-split-musttail10.ll

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
; Tests that we would convert coro.resume to a musttail call if the target is
2-
; Wasm64 with tail-call support.
3-
; RUN: opt < %s -passes='cgscc(coro-split),simplifycfg,early-cse' -S | FileCheck %s
4-
; RUN: opt < %s -passes='pgo-instr-gen,cgscc(coro-split),simplifycfg,early-cse' -S | FileCheck %s
2+
; Wasm64 or Wasm32 with tail-call support.
3+
; REQUIRES: webassembly-registered-target
54

6-
target triple = "wasm64-unknown-unknown"
5+
; RUN: opt -mtriple=wasm64-unknown-unknown < %s -passes='cgscc(coro-split),simplifycfg,early-cse' -S | FileCheck %s
6+
; RUN: opt -mtriple=wasm64-unknown-unknown < %s -passes='pgo-instr-gen,cgscc(coro-split),simplifycfg,early-cse' -S | FileCheck %s
7+
8+
; RUN: opt -mtriple=wasm32-unknown-unknown < %s -passes='cgscc(coro-split),simplifycfg,early-cse' -S | FileCheck %s
9+
; RUN: opt -mtriple=wasm32-unknown-unknown < %s -passes='pgo-instr-gen,cgscc(coro-split),simplifycfg,early-cse' -S | FileCheck %s
710

811
define void @f() #0 {
912
entry:

llvm/test/Transforms/Coroutines/coro-split-musttail11.ll

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)