[all-commits] [llvm/llvm-project] ebf016: Bug fix for multi-line labels in CFG dot graph

arpilipe via All-commits all-commits at lists.llvm.org
Tue Sep 5 22:02:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ebf01690d9b3d922909d9aecdf1db1a944a56298
      https://github.com/llvm/llvm-project/commit/ebf01690d9b3d922909d9aecdf1db1a944a56298
  Author: Marek Sedláček <msedlacek at azul.com>
  Date:   2023-09-05 (Tue, 05 Sep 2023)

  Changed paths:
    M llvm/include/llvm/Analysis/CFGPrinter.h
    M llvm/test/Analysis/DotMachineCFG/AMDGPU/functions.mir
    M llvm/test/Analysis/DotMachineCFG/AMDGPU/irreducible.mir
    A llvm/test/Other/cfg-multiline-header.ll
    M llvm/test/Other/cfg_deopt_unreach.ll
    M polly/test/ScopDetect/dot-scops-npm.ll

  Log Message:
  -----------
  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




More information about the All-commits mailing list