[all-commits] [llvm/llvm-project] 26d3cd: [MoveAutoInit] Ignore unreachable basicblocks and ...

XChy via All-commits all-commits at lists.llvm.org
Tue Jan 16 02:45:56 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 26d3cd1d07ae3fc8312feb2ab3a3a86414f28c70
      https://github.com/llvm/llvm-project/commit/26d3cd1d07ae3fc8312feb2ab3a3a86414f28c70
  Author: XChy <xxs_chy at outlook.com>
  Date:   2024-01-16 (Tue, 16 Jan 2024)

  Changed paths:
    M llvm/lib/Transforms/Utils/MoveAutoInit.cpp
    A llvm/test/Transforms/MoveAutoInit/catchswitch.ll
    M llvm/test/Transforms/MoveAutoInit/loop.ll

  Log Message:
  -----------
  [MoveAutoInit] Ignore unreachable basicblocks and handle catchswitch (#78232)

Fixes #78049
This patch has done:
- Ignore unreachable predecessors when looking for nearest common
dominator.
- Check catchswitch with `getFirstNonPHI`, instead of
`getFirstInsertionPt`. The latter skips EHPad.




More information about the All-commits mailing list