[llvm] 41f8145 - [InlineAdvisor][NFC] Fix tests added in D110658 V2

via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 18 15:27:41 PDT 2021


Author: modimo
Date: 2021-10-18T15:27:33-07:00
New Revision: 41f814589f20eb82093107ec4d3875aa0ed74cd4

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

LOG: [InlineAdvisor][NFC] Fix tests added in D110658 V2

On Windows there's an *.exe suffix to opt that isn't present in Linux.
Remove the check for opt in the string

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/Inline/cgscc-inline-replay.ll b/llvm/test/Transforms/Inline/cgscc-inline-replay.ll
index 50b26ba14c31..9bdd0e32e9cb 100644
--- a/llvm/test/Transforms/Inline/cgscc-inline-replay.ll
+++ b/llvm/test/Transforms/Inline/cgscc-inline-replay.ll
@@ -26,7 +26,7 @@
 ; REPLAY-FUNCTION: '_Z3sumii' inlined into 'main' with (cost=always)
 
 ; REPLAY-ERROR: error: Could not open remarks file:
-; REPLAY-ERROR-SCOPE: opt: for the --cgscc-inline-replay-scope option: Cannot find option named 'function'!
+; REPLAY-ERROR-SCOPE: 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
 

diff  --git a/llvm/test/Transforms/SampleProfile/inline-replay.ll b/llvm/test/Transforms/SampleProfile/inline-replay.ll
index 2cb8a7c53198..2235797febe7 100644
--- a/llvm/test/Transforms/SampleProfile/inline-replay.ll
+++ b/llvm/test/Transforms/SampleProfile/inline-replay.ll
@@ -37,7 +37,7 @@
 ; REPLAY-ALL-FUNCTION: '_Z3subii' inlined into '_Z3sumii' to match profiling context with (cost={{[-0-9]+}}
 
 ; 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'!
+; REPLAY-ERROR-SCOPE: 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
 


        


More information about the llvm-commits mailing list