[all-commits] [llvm/llvm-project] a1f442: [InstCombine] Support phi to cond fold with more t...

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Mar 1 07:32:07 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a1f442b2787ef63ba84c8627987cfebe3ba4f7f6
      https://github.com/llvm/llvm-project/commit/a1f442b2787ef63ba84c8627987cfebe3ba4f7f6
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-03-01 (Tue, 01 Mar 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp
    M llvm/test/Transforms/InstCombine/simple_phi_condition.ll

  Log Message:
  -----------
  [InstCombine] Support phi to cond fold with more than two preds

This transform can still be applied if there are more than two
phi inputs, as long as phi inputs with the same value are dominated
by the same idom edge.




More information about the All-commits mailing list