[all-commits] [llvm/llvm-project] 5997a1: [JumpThreading] Fix lifetime markers when alloca r...

Guilherme Lopes via All-commits all-commits at lists.llvm.org
Tue Jun 9 12:19:59 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5997a17bdaec757775a71bbe9e390f1f8e737178
      https://github.com/llvm/llvm-project/commit/5997a17bdaec757775a71bbe9e390f1f8e737178
  Author: Guilherme Lopes <guilhermeglopes at tecnico.ulisboa.pt>
  Date:   2026-06-09 (Tue, 09 Jun 2026)

  Changed paths:
    M llvm/lib/Transforms/Scalar/JumpThreading.cpp
    A llvm/test/Transforms/JumpThreading/lifetime-alloca.ll

  Log Message:
  -----------
  [JumpThreading] Fix lifetime markers when alloca requires SSA renaming (#188147)

JumpThreading can create PHI nodes for alloca values when threading
across blocks. This violates the requirement introduced in #149310 that
lifetime.start/end intrinsics must operate directly on allocas.

After SSA reconstruction, check if any lifetime marker for an alloca now
points to a PHI node. If so, drop all lifetime markers for that alloca.

Fixes #167733



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