[InlineAdvisor][NFC] Fix tests added in D110658 on
authormodimo <modimo@fb.com>
Mon, 18 Oct 2021 21:19:41 +0000 (14:19 -0700)
committermodimo <modimo@fb.com>
Mon, 18 Oct 2021 21:21:01 +0000 (14:21 -0700)
Windows which outputs "is a directory" rather than "Is a directory" on error compared to linux

llvm/test/Transforms/Inline/cgscc-inline-replay.ll
llvm/test/Transforms/SampleProfile/inline-replay.ll

index 0c74693..50b26ba 100644 (file)
@@ -25,7 +25,7 @@
 ; REPLAY-FUNCTION: '_Z3subii' inlined into '_Z3sumii' with (cost={{[-0-9]+}}
 ; REPLAY-FUNCTION: '_Z3sumii' inlined into 'main' with (cost=always)
 
-; REPLAY-ERROR: error: Could not open remarks file: Is a directory
+; REPLAY-ERROR: error: Could not open remarks file:
 ; REPLAY-ERROR-SCOPE: opt: for the --cgscc-inline-replay-scope option: Cannot find option named 'function'!
 
 @.str = private unnamed_addr constant [11 x i8] c"sum is %d\0A\00", align 1
index 55b49ce..2cb8a7c 100644 (file)
@@ -36,7 +36,7 @@
 ; REPLAY-ALL-FUNCTION-NOT: '_Z3subii' inlined into 'main' to match profiling context with (cost={{[-0-9]+}}
 ; REPLAY-ALL-FUNCTION: '_Z3subii' inlined into '_Z3sumii' to match profiling context with (cost={{[-0-9]+}}
 
-; REPLAY-ERROR: error: Could not open remarks file: Is a directory
+; REPLAY-ERROR: error: Could not open remarks file:
 ; REPLAY-ERROR-SCOPE: opt: for the --sample-profile-inline-replay-scope option: Cannot find option named 'function'!
 
 @.str = private unnamed_addr constant [11 x i8] c"sum is %d\0A\00", align 1