[llvm] 202ae98 - [test] Fix new CodeGenPrepare test for non-X86 systems
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 5 02:48:48 PST 2021
Author: Jann Horn
Date: 2021-03-05T11:48:38+01:00
New Revision: 202ae987d3e7f7fb1de9310ba618beffcbc68289
URL: https://github.com/llvm/llvm-project/commit/202ae987d3e7f7fb1de9310ba618beffcbc68289
DIFF: https://github.com/llvm/llvm-project/commit/202ae987d3e7f7fb1de9310ba618beffcbc68289.diff
LOG: [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
Added:
llvm/test/Transforms/CodeGenPrepare/X86/remove-assume-block.ll
Modified:
Removed:
llvm/test/Transforms/CodeGenPrepare/remove-assume-block.ll
################################################################################
diff --git a/llvm/test/Transforms/CodeGenPrepare/remove-assume-block.ll b/llvm/test/Transforms/CodeGenPrepare/X86/remove-assume-block.ll
similarity index 92%
rename from llvm/test/Transforms/CodeGenPrepare/remove-assume-block.ll
rename to llvm/test/Transforms/CodeGenPrepare/X86/remove-assume-block.ll
index 536a7d1d3d31..1d5e6ea0978a 100644
--- a/llvm/test/Transforms/CodeGenPrepare/remove-assume-block.ll
+++ b/llvm/test/Transforms/CodeGenPrepare/X86/remove-assume-block.ll
@@ -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
More information about the llvm-commits
mailing list