[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.

llvm-svn: 321000
diff --git a/llvm/test/ThinLTO/X86/distributed_indexes.ll b/llvm/test/ThinLTO/X86/distributed_indexes.ll
index d7e68ed..bcde341 100644
--- a/llvm/test/ThinLTO/X86/distributed_indexes.ll
+++ b/llvm/test/ThinLTO/X86/distributed_indexes.ll
@@ -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