1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

[test] Fix new CodeGenPrepare test for non-X86 systems

The new test llvm/test/Transforms/CodeGenPrepare/remove-assume-block.ll
breaks on non-X86 machines. Change it to look like the existing test
llvm/test/Transforms/CodeGenPrepare/X86/delete-assume-dead-code.ll
to fix it.

Reviewed By: bkramer

Differential Revision: https://reviews.llvm.org/D97952
This commit is contained in:
Jann Horn 2021-03-05 11:48:37 +01:00 committed by Benjamin Kramer
parent df20558925
commit f1adf2f3c1

View File

@ -1,10 +1,8 @@
; RUN: opt -S -codegenprepare < %s | FileCheck %s
; RUN: opt -S -codegenprepare -mtriple=x86_64-linux < %s | FileCheck %s
;
; Ensure that blocks that only contain @llvm.assume are removed completely
; during CodeGenPrepare.
target triple = "x86_64-unknown-linux-gnu"
; CHECK-LABEL: @simple(
; CHECK-NEXT: end:
; CHECK-NEXT: ret void