From d15365522a7189fd0b937c2602a5ed0cebaaa4d5 Mon Sep 17 00:00:00 2001 From: WANG Xuerui Date: Sun, 11 Dec 2022 16:31:11 +0300 Subject: [PATCH] [test][NFC] Guard one test case against LLVM checkouts at interesting paths Previously only the "store" string was being checked for not appearing twice, but unfortunately the check also looked at the ModuleID and source_filename lines, so the test case would fail if the LLVM checkout's absolute path contained the substring "store". Fix this spurious test failure by tweaking the invocation so the full path no longer shows up in the output. Differential Revision: https://reviews.llvm.org/D131540 --- llvm/test/Transforms/GVNHoist/non-trivial-phi.ll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/test/Transforms/GVNHoist/non-trivial-phi.ll b/llvm/test/Transforms/GVNHoist/non-trivial-phi.ll index de885f0..3711175 100644 --- a/llvm/test/Transforms/GVNHoist/non-trivial-phi.ll +++ b/llvm/test/Transforms/GVNHoist/non-trivial-phi.ll @@ -1,4 +1,4 @@ -; RUN: opt -passes=gvn-hoist %s -S -o - | FileCheck %s +; RUN: opt -passes=gvn-hoist -S < %s | FileCheck %s ; CHECK: store ; CHECK-NOT: store -- 2.7.4