[all-commits] [llvm/llvm-project] e808ca: [InstCombine] Improve select -> phi canonicalizati...

max-azul via All-commits all-commits at lists.llvm.org
Sun Jul 12 21:41:04 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e808cab824488af137b62902e65dec3827b83b46
      https://github.com/llvm/llvm-project/commit/e808cab824488af137b62902e65dec3827b83b46
  Author: Max Kazantsev <mkazantsev at azul.com>
  Date:   2020-07-13 (Mon, 13 Jul 2020)

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

  Log Message:
  -----------
  [InstCombine] Improve select -> phi canonicalization: consider more blocks

We can try to replace select with a Phi not in its parent block alone,
but also in blocks of its arguments. We benefit from it when select's
argument is a Phi.

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




More information about the All-commits mailing list