[llvm] r321000 - [ThinLTO] Make distributed indexes test more robust

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 18 10:00:32 PST 2017


Author: tejohnson
Date: Mon Dec 18 10:00:32 2017
New Revision: 321000

URL: http://llvm.org/viewvc/llvm-project?rev=321000&view=rev
Log:
[ThinLTO] Make distributed indexes test more robust

Modify test so that it passes in the reverse-iteration bot.
We use DenseMap instead of std::map for the summaries to emit into
distributed index files. The iteration order is not defined, but
it is deterministic, which is good enough.

Modified:
    llvm/trunk/test/ThinLTO/X86/distributed_indexes.ll

Modified: llvm/trunk/test/ThinLTO/X86/distributed_indexes.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ThinLTO/X86/distributed_indexes.ll?rev=321000&r1=320999&r2=321000&view=diff
==============================================================================
--- llvm/trunk/test/ThinLTO/X86/distributed_indexes.ll (original)
+++ llvm/trunk/test/ThinLTO/X86/distributed_indexes.ll Mon Dec 18 10:00:32 2017
@@ -16,10 +16,10 @@
 ; BACKEND1-NEXT: </MODULE_STRTAB_BLOCK
 ; BACKEND1-NEXT: <GLOBALVAL_SUMMARY_BLOCK
 ; BACKEND1-NEXT: <VERSION
-; BACKEND1-DAG: <VALUE_GUID op0=2 op1=-5751648690987223394
-; BACKEND1-DAG: <VALUE_GUID op0=4 op1=-5300342847281564238
-; BACKEND1-DAG: <VALUE_GUID op0=1 op1=-3706093650706652785
-; BACKEND1-DAG: <VALUE_GUID op0=3 op1=-1039159065113703048
+; BACKEND1-DAG: <VALUE_GUID op0={{.*}} op1=-5751648690987223394
+; BACKEND1-DAG: <VALUE_GUID op0={{.*}} op1=-5300342847281564238
+; BACKEND1-DAG: <VALUE_GUID op0={{.*}} op1=-3706093650706652785
+; BACKEND1-DAG: <VALUE_GUID op0={{.*}} op1=-1039159065113703048
 ; BACKEND1-DAG: <COMBINED {{.*}} op1=0
 ; BACKEND1-DAG: <COMBINED {{.*}} op1=1
 ; BACKEND1-DAG: <COMBINED_ALIAS {{.*}} op1=1
@@ -32,9 +32,9 @@
 ; BACKEND2-NEXT: </MODULE_STRTAB_BLOCK
 ; BACKEND2-NEXT: <GLOBALVAL_SUMMARY_BLOCK
 ; BACKEND2-NEXT: <VERSION
-; BACKEND2-DAG: <VALUE_GUID op0=1 op1=-5751648690987223394/>
-; BACKEND2-DAG: <VALUE_GUID op0=4 op1=-5300342847281564238/>
-; BACKEND2-DAG: <VALUE_GUID op0=3 op1=-1039159065113703048/>
+; BACKEND2-DAG: <VALUE_GUID op0={{.*}} op1=-5751648690987223394/>
+; BACKEND2-DAG: <VALUE_GUID op0={{.*}} op1=-5300342847281564238/>
+; BACKEND2-DAG: <VALUE_GUID op0={{.*}} op1=-1039159065113703048/>
 ; BACKEND2-NEXT: <COMBINED
 ; BACKEND2-NEXT: <COMBINED
 ; BACKEND2-NEXT: <COMBINED_ALIAS




More information about the llvm-commits mailing list