OSDN Git Service

[ThinLTO] Make distributed indexes test more robust
authorTeresa Johnson <tejohnson@google.com>
Mon, 18 Dec 2017 18:00:32 +0000 (18:00 +0000)
committerTeresa Johnson <tejohnson@google.com>
Mon, 18 Dec 2017 18:00:32 +0000 (18:00 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321000 91177308-0d34-0410-b5e6-96231b3b80d8

test/ThinLTO/X86/distributed_indexes.ll

index d7e68ed..bcde341 100644 (file)
 ; 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