[all-commits] [llvm/llvm-project] be6bed: [InstCombine] Remove instructions before+after unr...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Jul 24 02:10:49 PDT 2025


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

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
    A llvm/test/Transforms/InstCombine/pr150338.ll

  Log Message:
  -----------
  [InstCombine] Remove instructions before+after unreachable at same time

There is no need to first remove the instructions before and then
the ones after in two different worklist iterations. We don't need
to worry about change reporting here, as the functions do that
themselves.

This avoids the issue in #150338, but not really in a principled
way. It's possible that we will have to allow poison arguments
to lifetime.start/lifetime.end again if this turns out to be a
recurring problem.



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