[PATCH] D99531: [x86] enhance matching of pmaddwd

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 29 12:12:37 PDT 2021


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

This was crashing with the example from:
https://llvm.org/PR49716
...and I hopefully stubbed that out with a283d7258360 <https://reviews.llvm.org/rGa283d725836033f5d7626470506160b7bf6d9107> , but as we can see from the SSE vs. AVX code, I think we need to try harder to match the pattern.

This matcher code was adapted from another pmadd pattern match in D49636 <https://reviews.llvm.org/D49636>, but it needs different ops to deal with size mismatches.


https://reviews.llvm.org/D99531

Files:
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/X86/madd.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99531.333957.patch
Type: text/x-patch
Size: 5217 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210329/6baf0386/attachment.bin>


More information about the llvm-commits mailing list