[all-commits] [llvm/llvm-project] 8f3127: [LoopDeletion] Don't delete loop exiting to EH pad...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Apr 17 06:49:21 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8f3127cdea6e772954466554b3d51eeb6762270f
      https://github.com/llvm/llvm-project/commit/8f3127cdea6e772954466554b3d51eeb6762270f
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-04-17 (Mon, 17 Apr 2023)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopDeletion.cpp
    A llvm/test/Transforms/LoopDeletion/pr62160.ll

  Log Message:
  -----------
  [LoopDeletion] Don't delete loop exiting to EH pad (PR62160)

We can't branch directly to the EH pad, which is what the current
loop deletion code would try to do. We would need a different
approach here, which retains the invoke. This edge case does not
look worth bothering with.

Fixes https://github.com/llvm/llvm-project/issues/62160.




More information about the All-commits mailing list