[all-commits] [llvm/llvm-project] 307256: [GVNSink] Do not sink lifetimes of different alloc...

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Jul 22 00:44:25 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 307256ecbd858bc2df5fa9342c67a8205691ade9
      https://github.com/llvm/llvm-project/commit/307256ecbd858bc2df5fa9342c67a8205691ade9
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2025-07-22 (Tue, 22 Jul 2025)

  Changed paths:
    M llvm/lib/Transforms/Utils/Local.cpp
    M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
    A llvm/test/Transforms/GVNSink/lifetime.ll

  Log Message:
  -----------
  [GVNSink] Do not sink lifetimes of different allocas (#149818)

This was always undesirable, and after #149310 it is illegal and will
result in a verifier error.

Fix this by moving SimplifyCFG's check for this into
canReplaceOperandWithVariable(), so it's shared with GVNSink.



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