[all-commits] [llvm/llvm-project] af5235: [SimplifyCFG] Skip dbg intrinsics when checking fo...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sat Apr 17 07:18:28 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af523514c4b9e0bd04bffb1f6ca2922c83df4c36
      https://github.com/llvm/llvm-project/commit/af523514c4b9e0bd04bffb1f6ca2922c83df4c36
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-04-17 (Sat, 17 Apr 2021)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
    M llvm/test/Transforms/SimplifyCFG/hoist-dbgvalue.ll

  Log Message:
  -----------
  [SimplifyCFG] Skip dbg intrinsics when checking for branch-only BBs.

Debug intrinsics are free to hoist and should be skipped when looking
for terminator-only blocks. As a consequence, we have to delegate to the
main hoisting loop to hoist any dbg intrinsics instead of jumping to the
terminator case directly.

This fixes PR49982.

Reviewed By: lebedev.ri

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




More information about the All-commits mailing list