[all-commits] [llvm/llvm-project] ca18e2: [InstCombine] Remove instructions in dead blocks d...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri May 26 07:43:52 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca18e21951a89f3115694fc64cd64a4b06cd5873
      https://github.com/llvm/llvm-project/commit/ca18e21951a89f3115694fc64cd64a4b06cd5873
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-05-26 (Fri, 26 May 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/unreachable-code.ll

  Log Message:
  -----------
  [InstCombine] Remove instructions in dead blocks during combining

We already do this during initial worklist population. Doing this
as part of primary combining allows us to remove instructions in
blocks that were rendered dead by condition folding within the
same instcombine iteration.




More information about the All-commits mailing list