[PATCH] D147404: [DAGCombiner] Fold avg(x, x) --> x

Jun Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 2 22:14:40 PDT 2023


junaire updated this revision to Diff 510398.
junaire added a comment.

Perform combine after the types are legalized.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147404/new/

https://reviews.llvm.org/D147404

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/AArch64/arm64-vhadd.ll
  llvm/test/CodeGen/X86/avg.ll
  llvm/test/CodeGen/X86/combine-pavg.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147404.510398.patch
Type: text/x-patch
Size: 11759 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230403/8371d367/attachment.bin>


More information about the llvm-commits mailing list