[all-commits] [llvm/llvm-project] 790682: [InstCombine] Recursively replace select value equ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Dec 21 06:56:00 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 79068275e7c99dfcc1bf17421b591312f775fa16
      https://github.com/llvm/llvm-project/commit/79068275e7c99dfcc1bf17421b591312f775fa16
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-12-21 (Wed, 21 Dec 2022)

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

  Log Message:
  -----------
  [InstCombine] Recursively replace select value equivalence

In the X == C ? f(X) : Y -> X == C ? f(C) : Y fold, perform the
replacement in f(X) recursively. For now, this just goes two
instructions up rather than one instruction up.




More information about the All-commits mailing list