[PATCH] D119073: [X86] Replace X86ISD::AVG with generic ISD::AVGCEILU

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 6 01:40:27 PST 2022


dmgreen created this revision.
dmgreen added reviewers: RKSimon, spatel, efriedma, craig.topper, lebedev.ri.
Herald added subscribers: pengfei, hiraditya.
dmgreen requested review of this revision.
Herald added a project: LLVM.

Pulled out of D106237 <https://reviews.llvm.org/D106237>, this replaces the X86ISD::AVG DAG node with the generic ISD::AVGCEILU. It doesn't remove the detectAVGPattern method, but the extra generic ISel matching does allow some extra folding to happen in the tests.


https://reviews.llvm.org/D119073

Files:
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/lib/Target/X86/X86ISelLowering.h
  llvm/lib/Target/X86/X86InstrAVX512.td
  llvm/lib/Target/X86/X86InstrFragmentsSIMD.td
  llvm/lib/Target/X86/X86InstrSSE.td
  llvm/lib/Target/X86/X86IntrinsicsInfo.h
  llvm/test/CodeGen/X86/avg.ll
  llvm/test/CodeGen/X86/min-legal-vector-width.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119073.406237.patch
Type: text/x-patch
Size: 20978 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220206/ab6e815b/attachment.bin>


More information about the llvm-commits mailing list