[all-commits] [llvm/llvm-project] 5189c5: [X86] Simplify patterns for avx512 vpcmp. NFC

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Feb 10 19:24:58 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5189c5b940a1dbce699e407214767f9e5bf77ebf
      https://github.com/llvm/llvm-project/commit/5189c5b940a1dbce699e407214767f9e5bf77ebf
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2021-02-10 (Wed, 10 Feb 2021)

  Changed paths:
    M llvm/lib/Target/X86/X86InstrAVX512.td

  Log Message:
  -----------
  [X86] Simplify patterns for avx512 vpcmp. NFC

This removes the commuted PatFrags that only existed to carry
an SDNodeXForm in its OperandTransform field. We know all the places
that need to use the commuted SDNodeXForm and there is one transform
shared by signed and unsigned compares. So just hardcode the
the SDNodeXForm where it is needed and use the non commuted PatFrag
in the pattern.

I think when I wrote this I thought the SDNodeXForm name had to
match what is in the PatFrag that is being used. But that's not
true. The OperandTransform is only used when the PatFrag is used
in an instruction pattern and not a separate Pat pattern. All
the commuted cases are Pat patterns.




More information about the All-commits mailing list