[all-commits] [llvm/llvm-project] cde681: [InstCombine] Replace phi operands in successors o...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Jun 9 03:31:23 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cde681c865302f689f0937e5ec2e127a089a4db3
      https://github.com/llvm/llvm-project/commit/cde681c865302f689f0937e5ec2e127a089a4db3
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-06-09 (Fri, 09 Jun 2023)

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

  Log Message:
  -----------
  [InstCombine] Replace phi operands in successors of unreachable block

Set these operands to poison, which might allow folding the phi node,
or reduce the use count of an instruction.




More information about the All-commits mailing list