[all-commits] [llvm/llvm-project] 3d1aec: [CSSPGO] Fix missing debug info of dangling pseudo...

ictwanglei via All-commits all-commits at lists.llvm.org
Fri Apr 23 14:29:18 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3d1aecbd285709f58168b3ad65c06da4b42132a9
      https://github.com/llvm/llvm-project/commit/3d1aecbd285709f58168b3ad65c06da4b42132a9
  Author: wlei <wlei at fb.com>
  Date:   2021-04-23 (Fri, 23 Apr 2021)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
    A llvm/test/Transforms/SampleProfile/pseudo-probe-dangle2.ll

  Log Message:
  -----------
  [CSSPGO] Fix missing debug info of dangling pseudo probe

While doing speculative execution opt, it conservatively drops all insn's debug info in the merged `ThenBB`(see the loop at line 2384) including the dangling probe. The missing debug info of the dangling probe will cause the wrong inference computation.

So we should avoid dropping the debug info from pseudo probe, this change try to fix this by moving the to-be dangling probe to the merging target BB before the debug info is dropped.

Reviewed By: hoy, wenlei

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




More information about the All-commits mailing list