[all-commits] [llvm/llvm-project] 417add: [CodeGen] Tweak whitespace in LiveInterval printing

Jay Foad via All-commits all-commits at lists.llvm.org
Thu Nov 11 07:20:25 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 417add4d4e921f090cf23d15a642dc04eff49505
      https://github.com/llvm/llvm-project/commit/417add4d4e921f090cf23d15a642dc04eff49505
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2021-11-11 (Thu, 11 Nov 2021)

  Changed paths:
    M llvm/lib/CodeGen/LiveInterval.cpp

  Log Message:
  -----------
  [CodeGen] Tweak whitespace in LiveInterval printing

When printing a LiveInterval, tweak the use of single and double spaces
to try to make it clearer that the valnos are associated with the
preceding range or subrange, not the following subrange.

Compare the output before and then after this patch:
%1 [32r,144r:0)  0 at 32r L000000000000000C [32r,144r:0)  0 at 32r L00000000000000F3 [32r,32d:0)  0 at 32r weight:0.000000e+00
%1 [32r,144r:0) 0 at 32r  L000000000000000C [32r,144r:0) 0 at 32r  L00000000000000F3 [32r,32d:0) 0 at 32r  weight:0.000000e+00

Differential Revision: https://reviews.llvm.org/D113671




More information about the All-commits mailing list