[all-commits] [llvm/llvm-project] 958c0d: [KeyInstr][SimplifyCFG] Remap atoms when folding b...

Orlando Cazalet-Hyams via All-commits all-commits at lists.llvm.org
Thu May 1 08:41:14 PDT 2025


  Branch: refs/heads/users/OCHyams/ki-llvm-simplifycfg
  Home:   https://github.com/llvm/llvm-project
  Commit: 958c0d775bc696df74b847b106ccd2531d5e12e2
      https://github.com/llvm/llvm-project/commit/958c0d775bc696df74b847b106ccd2531d5e12e2
  Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
  Date:   2025-05-01 (Thu, 01 May 2025)

  Changed paths:
    M llvm/include/llvm/IR/DebugLoc.h
    M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
    A llvm/test/DebugInfo/KeyInstructions/Generic/simplifycfg-branch-fold.ll

  Log Message:
  -----------
  [KeyInstr][SimplifyCFG] Remap atoms when folding br to common succ into pred

SimplifyCFG folds `b` into `a`.

            +-----------+
            |           v
  --> a --> b --> c --> d -->
      |                 ^
      +-----------------+

Remap source atoms in `b` so that the duplicated instructions are analysed
independently to determine is_stmt positions. This is necessary as the
contents of `b` may be folded into multiple preds in this way.

Add multi-pred test.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list