[all-commits] [llvm/llvm-project] d8f941: [DAG] MatchRotate - Add funnel shift by immediate ...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Wed Mar 11 11:55:51 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d8f9416fdc83dd85062dc8cffdf982d2a953193f
      https://github.com/llvm/llvm-project/commit/d8f9416fdc83dd85062dc8cffdf982d2a953193f
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-03-11 (Wed, 11 Mar 2020)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/X86/avg.ll
    M llvm/test/CodeGen/X86/avx512vbmi2-funnel-shifts.ll
    M llvm/test/CodeGen/X86/avx512vbmi2vl-funnel-shifts.ll
    M llvm/test/CodeGen/X86/const-shift-of-constmasked.ll
    M llvm/test/CodeGen/X86/fshl.ll
    M llvm/test/CodeGen/X86/fshr.ll
    M llvm/test/CodeGen/X86/known-bits.ll
    M llvm/test/CodeGen/X86/sdiv_fix.ll
    M llvm/test/CodeGen/X86/sdiv_fix_sat.ll
    M llvm/test/CodeGen/X86/udiv_fix_sat.ll
    M llvm/test/CodeGen/X86/x86-64-double-precision-shift-left.ll
    M llvm/test/CodeGen/X86/x86-64-double-shifts-Oz-Os-O2.ll

  Log Message:
  -----------
  [DAG] MatchRotate - Add funnel shift by immediate support

This patch reuses the existing MatchRotate ROTL/ROTR rotation pattern code to also recognize the more general FSHL/FSHR funnel shift patterns when we have constant shift amounts.

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




More information about the All-commits mailing list