[all-commits] [llvm/llvm-project] 9bff37: [InstCombine] Replace selects with Phis

max-azul via All-commits all-commits at lists.llvm.org
Mon Jun 22 22:13:48 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9bff376e5c10ea384a6eee93f7d7668d670a66e7
      https://github.com/llvm/llvm-project/commit/9bff376e5c10ea384a6eee93f7d7668d670a66e7
  Author: Max Kazantsev <mkazantsev at azul.com>
  Date:   2020-06-23 (Tue, 23 Jun 2020)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/test/Transforms/InstCombine/select.ll

  Log Message:
  -----------
  [InstCombine] Replace selects with Phis

We can sometimes replace a select with a Phi node if all of its values
are available on respective incoming edges.

Differential Revision: https://reviews.llvm.org/D82005
Reviewed By: nikic




More information about the All-commits mailing list