aboutsummaryrefslogtreecommitdiff
path: root/polly
diff options
context:
space:
mode:
authorMarek Sedláček <msedlacek@azul.com>2023-09-05 19:03:59 -0700
committerArtur Pilipenko <apilipenko@azul.com>2023-09-05 22:01:51 -0700
commitebf01690d9b3d922909d9aecdf1db1a944a56298 (patch)
tree0b1aa16ba802c2424efc9c5800519fcb1b24186f /polly
parent976dbae2463804869004daef5a7effc72268204f (diff)
downloadllvm-ebf01690d9b3d922909d9aecdf1db1a944a56298.zip
llvm-ebf01690d9b3d922909d9aecdf1db1a944a56298.tar.gz
llvm-ebf01690d9b3d922909d9aecdf1db1a944a56298.tar.bz2
Bug fix for multi-line labels in CFG dot graph
After D154102 multi-line labels would get split incorrectly. When CFG is generated for a function with basic block name longer than 80 lines, then the header separator will be placed after the line break for the label name instead of after the whole label name. The fix is simple by just moving the insert of | character before the line splitting happens. Differential Revision: https://reviews.llvm.org/D159207
Diffstat (limited to 'polly')
-rw-r--r--polly/test/ScopDetect/dot-scops-npm.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/test/ScopDetect/dot-scops-npm.ll b/polly/test/ScopDetect/dot-scops-npm.ll
index 722cd1e..7c8be03 100644
--- a/polly/test/ScopDetect/dot-scops-npm.ll
+++ b/polly/test/ScopDetect/dot-scops-npm.ll
@@ -15,7 +15,7 @@ target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
define void @func_npm(i32 %n, i32 %m, ptr noalias nonnull %A) {
; CHECK: digraph "Scop Graph for 'func_npm' function"
; CHECK-NEXT: label="Scop Graph for 'func_npm' function"
-; CHECK: Node0x[[EntryID:.*]] [shape=record,label="{entry:| br label %outer.for\l}"];
+; CHECK: Node0x[[EntryID:.*]] [shape=record,label="{entry:\l| br label %outer.for\l}"];
; CHECK-NEXT: Node0x[[EntryID]] -> Node0x[[OUTER_FOR_ID:.*]];
; CHECK-NEXT: Node0x[[OUTER_FOR_ID]] [shape=record,label="{outer.for:
; CHECK-NEXT: Node0x[[OUTER_FOR_ID]] -> Node0x[[INNER_FOR_ID:.*]];