[all-commits] [llvm/llvm-project] b432dd: [CodeExtractor] Preserve entire scope of labels wh...

Felipe de Azevedo Piovezan via All-commits all-commits at lists.llvm.org
Mon Dec 12 12:49:52 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b432dd2d4b75847cc51bd3d4b41f4d71ca9bf0bd
      https://github.com/llvm/llvm-project/commit/b432dd2d4b75847cc51bd3d4b41f4d71ca9bf0bd
  Author: Felipe de Azevedo Piovezan <fpiovezan at apple.com>
  Date:   2022-12-12 (Mon, 12 Dec 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/CodeExtractor.cpp
    M llvm/test/Transforms/HotColdSplit/split-out-dbg-label.ll

  Log Message:
  -----------
  [CodeExtractor] Preserve entire scope of labels when moving them

When a dbg.label is moved into a new function, its corresponding scope
should be preserved, with the exception of the subprogram at the end of
the scope chain, which should now be the subprogram of the destination
function. See D139671.

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




More information about the All-commits mailing list