[all-commits] [llvm/llvm-project] e694e1: [x86] enhance matching of pmaddwd

RotateRight via All-commits all-commits at lists.llvm.org
Tue Mar 30 04:28:53 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e694e19a793140b989364e5807630b635420533e
      https://github.com/llvm/llvm-project/commit/e694e19a793140b989364e5807630b635420533e
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-03-30 (Tue, 30 Mar 2021)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/madd.ll

  Log Message:
  -----------
  [x86] enhance matching of pmaddwd

This was crashing with the example from:
https://llvm.org/PR49716
...and that was avoided with a283d7258360 ,
but as we can see from the SSE vs. AVX test code diff,
we can try harder to match the pattern.

This matcher code was adapted from another pmadd pattern
match in D49636, but it needs different ops to deal with
size mismatches.

Differential Revision: https://reviews.llvm.org/D99531




More information about the All-commits mailing list