[PATCH] D58384: [ThinLTO] Fix test with reverse-iteration
Jonas Hahnfeld via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 19 07:28:08 PST 2019
Hahnfeld created this revision.
Hahnfeld added reviewers: tejohnson, evgeny777, mehdi_amini.
Herald added subscribers: llvm-commits, dexonsmith, steven_wu, eraman, inglorion.
Herald added a project: LLVM.
Make test more flexible with regard to ordering. Additionally, FileCheck
cannot test -SAME patterns after DAG, so duplicate the line manually.
Repository:
rL LLVM
https://reviews.llvm.org/D58384
Files:
llvm/test/ThinLTO/X86/dot-dumper.ll
Index: llvm/test/ThinLTO/X86/dot-dumper.ll
===================================================================
--- llvm/test/ThinLTO/X86/dot-dumper.ll
+++ llvm/test/ThinLTO/X86/dot-dumper.ll
@@ -23,12 +23,12 @@
; STRUCTURE1: digraph Summary {
; STRUCTURE1: subgraph cluster_0
; STRUCTURE1: // Cross-module edges:
-; STRUCTURE1: 0 [label="@0"]; // defined externally
-; STRUCTURE1: M0_{{[0-9]+}} -> 0 [style=dotted]; // alias
+; STRUCTURE1-DAG: 0 [label="@0"]; // defined externally
+; STRUCTURE1-DAG: M0_{{[0-9]+}} -> 0 [style=dotted]; // alias
; STRUCTURE1-DAG: [[A:[0-9]+]] [label="A"]; // defined externally
+; STRUCTURE1-DAG: M0_{{[0-9]+}} -> [[A]] [{{.*}}]; // const-ref
; STRUCTURE1-DAG: [[FOO:[0-9]+]] [label="foo"]; // defined externally
; STRUCTURE1-DAG: M0_{{[0-9]+}} -> [[FOO]] // call
-; STRUCTURE1-DAG: M0_{{[0-9]+}} -> [[A]] [{{.*}}]; // const-ref
; STRUCTURE1-NEXT: }
; %t2 index
@@ -58,11 +58,11 @@
; PERMODULE1: // Module:
; COMBINED1: // Module: {{.*}}2.bc
; CLUSTER1-NEXT: subgraph cluster_[[ID1:[0-1]]] {
-; CLUSTER1-DAG: M[[ID1]]_[[A:[0-9]+]] [{{.*}}A|extern{{.*}}]; // variable
-; COMBINED1-SAME: , immutable
+; PERMODULE1-DAG: M[[ID1]]_[[A:[0-9]+]] [{{.*}}A|extern{{.*}}]; // variable
+; COMBINED1-DAG: M[[ID1]]_[[A:[0-9]+]] [{{.*}}A|extern{{.*}}]; // variable, immutable
; CLUSTER1-DAG: M[[ID1]]_[[FOO:[0-9]+]] [{{.*}}foo|extern{{.*}} ffl: 00001{{.*}}]; // function
-; CLUSTER1-DAG: M[[ID1]]_[[B:[0-9]+]] [{{.*}}B|extern{{.*}}]; // variable
-; COMBINED1-SAME: , immutable
+; PERMODULE1-DAG: M[[ID1]]_[[B:[0-9]+]] [{{.*}}B|extern{{.*}}]; // variable
+; COMBINED1-DAG: M[[ID1]]_[[B:[0-9]+]] [{{.*}}B|extern{{.*}}]; // variable, immutable
; CLUSTER1-DAG: M[[ID1]]_[[BAR:[0-9]+]] [{{.*}}bar|extern{{.*}}]; // function, dead
; CLUSTER1-NEXT: // Edges:
; CLUSTER1-DAG: M[[ID1]]_[[FOO]] -> M[[ID1]]_[[B]] [{{.*}}]; // const-ref
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58384.187364.patch
Type: text/x-patch
Size: 2016 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190219/532b865c/attachment.bin>
More information about the llvm-commits
mailing list