From 7a567c60f2c873c147a68ba084f091bd7f020217 Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Thu, 30 Jun 2022 11:37:28 +0800 Subject: [PATCH] [Coroutines] Add REQUIRES clause to skip unsupported targets --- llvm/test/Transforms/Coroutines/coro-split-musttail8.ll | 2 ++ llvm/test/Transforms/Coroutines/coro-split-musttail9.ll | 2 ++ 2 files changed, 4 insertions(+) diff --git a/llvm/test/Transforms/Coroutines/coro-split-musttail8.ll b/llvm/test/Transforms/Coroutines/coro-split-musttail8.ll index 1265adb..eff763c 100644 --- a/llvm/test/Transforms/Coroutines/coro-split-musttail8.ll +++ b/llvm/test/Transforms/Coroutines/coro-split-musttail8.ll @@ -1,3 +1,5 @@ +; REQUIRES: webassembly-registered-target +; ; Tests that we wouldn't convert coro.resume to a musttail call if the target is ; Wasm32. ; RUN: opt < %s -passes='cgscc(coro-split),simplifycfg,early-cse' -S | FileCheck %s diff --git a/llvm/test/Transforms/Coroutines/coro-split-musttail9.ll b/llvm/test/Transforms/Coroutines/coro-split-musttail9.ll index 6466d13..ad1d9ea 100644 --- a/llvm/test/Transforms/Coroutines/coro-split-musttail9.ll +++ b/llvm/test/Transforms/Coroutines/coro-split-musttail9.ll @@ -1,3 +1,5 @@ +; REQUIRES: webassembly-registered-target +; ; Tests that we wouldn't convert coro.resume to a musttail call if the target is ; Wasm64. ; RUN: opt < %s -passes='cgscc(coro-split),simplifycfg,early-cse' -S | FileCheck %s -- 2.7.4