[all-commits] [llvm/llvm-project] 0ce193: [InstCombine] Refactor folding of commutative bino...

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Wed Jan 3 23:11:42 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0ce193708cb682f3ad742ad909d8a5346a505ac7
      https://github.com/llvm/llvm-project/commit/0ce193708cb682f3ad742ad909d8a5346a505ac7
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2024-01-04 (Thu, 04 Jan 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineInternal.h
    M llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/minmax-of-minmax.ll

  Log Message:
  -----------
  [InstCombine] Refactor folding of commutative binops over select/phi/minmax (#76692)

This patch cleans up the duplicate code for folding commutative binops
over `select/phi/minmax`.

Related commits:
+ select support:
https://github.com/llvm/llvm-project/commit/88cc35b27e6c7966ab2463fa06d3dd970e88df64
+ phi support:
https://github.com/llvm/llvm-project/commit/8674a023bcacb677ce48b8831e2ae35b5aa2d8ef
+ minmax support:
https://github.com/llvm/llvm-project/commit/624973806c5644ccfa84805319b5852edb68d48d




More information about the All-commits mailing list