[all-commits] [llvm/llvm-project] b86f24: [InstCombine] make `foldBinOpIntoSelectOrPhi` fold...

Kiva via All-commits all-commits at lists.llvm.org
Wed Mar 4 01:24:20 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b86f24fd0ed47238ddfa1292bbd89d1ec10d774c
      https://github.com/llvm/llvm-project/commit/b86f24fd0ed47238ddfa1292bbd89d1ec10d774c
  Author: Kiva <imkiva at islovely.icu>
  Date:   2026-03-04 (Wed, 04 Mar 2026)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/binop-phi-operands.ll
    M llvm/test/Transforms/InstCombine/fmul.ll
    M llvm/test/Transforms/InstCombine/icmp-binop.ll
    M llvm/test/Transforms/InstCombine/or-select-zero-icmp.ll
    M llvm/test/Transforms/InstCombine/recurrence.ll
    M llvm/test/Transforms/InstCombine/select.ll
    M llvm/test/Transforms/LoopVectorize/induction.ll

  Log Message:
  -----------
  [InstCombine] make `foldBinOpIntoSelectOrPhi` fold on all operands (#183692)

This PR makes `foldBinOpIntoSelectOrPhi` fold to select/phi both for
operands 0 and 1.

Alive2: https://alive2.llvm.org/ce/z/T56TMM
Also fixes #183498



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list