[llvm] 67ecd8c - [PGOProfile] make test less brittle; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Tue May 19 12:56:58 PDT 2020


Author: Sanjay Patel
Date: 2020-05-19T15:56:29-04:00
New Revision: 67ecd8cbf5ff0573de8eade632b9a423b7ff0711

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

LOG: [PGOProfile] make test less brittle; NFC

This test may fail just from cosmetic diffs because the values change names.
This is a minimal diff to work-around that, but more may be needed.

Added: 
    

Modified: 
    llvm/test/Transforms/PGOProfile/cspgo_profile_summary.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/PGOProfile/cspgo_profile_summary.ll b/llvm/test/Transforms/PGOProfile/cspgo_profile_summary.ll
index 8bd2fb9e348d..fb5d5d1e78a1 100644
--- a/llvm/test/Transforms/PGOProfile/cspgo_profile_summary.ll
+++ b/llvm/test/Transforms/PGOProfile/cspgo_profile_summary.ll
@@ -66,10 +66,10 @@ for.end:
   ret void
 }
 ; PGOSUMMARY-LABEL: @bar
-; PGOSUMMARY: %odd.sink = select i1 %tobool, i32* @even, i32* @odd
+; PGOSUMMARY: %odd.sink{{[0-9]*}} = select i1 %tobool{{[0-9]*}}, i32* @even, i32* @odd
 ; PGOSUMMARY-SAME: !prof ![[BW_PGO_BAR:[0-9]+]]
 ; CSPGOSUMMARY-LABEL: @bar
-; CSPGOSUMMARY: %odd.sink = select i1 %tobool, i32* @even, i32* @odd
+; CSPGOSUMMARY: %odd.sink{{[0-9]*}} = select i1 %tobool{{[0-9]*}}, i32* @even, i32* @odd
 ; CSPGOSUMMARY-SAME: !prof ![[BW_CSPGO_BAR:[0-9]+]]
 
 define internal fastcc i32 @cond(i32 %i) {


        


More information about the llvm-commits mailing list