[llvm] d153655 - [test][NFC] Guard one test case against LLVM checkouts at interesting paths

Roman Lebedev via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 11 05:32:04 PST 2022


Author: WANG Xuerui
Date: 2022-12-11T16:31:11+03:00
New Revision: d15365522a7189fd0b937c2602a5ed0cebaaa4d5

URL: https://github.com/llvm/llvm-project/commit/d15365522a7189fd0b937c2602a5ed0cebaaa4d5
DIFF: https://github.com/llvm/llvm-project/commit/d15365522a7189fd0b937c2602a5ed0cebaaa4d5.diff

LOG: [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

Added: 
    

Modified: 
    llvm/test/Transforms/GVNHoist/non-trivial-phi.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/GVNHoist/non-trivial-phi.ll b/llvm/test/Transforms/GVNHoist/non-trivial-phi.ll
index de885f07640ae..3711175ca0860 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


        


More information about the llvm-commits mailing list