[all-commits] [llvm/llvm-project] 8cdd2a: [SimplifyCFG] Update debug location when folding b...

Davide Italiano via All-commits all-commits at lists.llvm.org
Thu Jun 18 12:33:51 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8cdd2a158c9cc94ad265fe4f0d45edd3bf916b6f
      https://github.com/llvm/llvm-project/commit/8cdd2a158c9cc94ad265fe4f0d45edd3bf916b6f
  Author: Davide Italiano <ditaliano at apple.com>
  Date:   2020-06-18 (Thu, 18 Jun 2020)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
    M llvm/test/Transforms/SimplifyCFG/basictest.ll
    A llvm/test/Transforms/SimplifyCFG/fold-debug-location.ll

  Log Message:
  -----------
  [SimplifyCFG] Update debug location when folding branch to common destination

Sometimes a dead block gets folded and the debug information is still
retained. This manifests as jumpy stepping in lldb, see the bugzilla PR
for an end-to-end C testcase.

Fixes https://bugs.llvm.org/show_bug.cgi?id=46008

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




More information about the All-commits mailing list