[all-commits] [llvm/llvm-project] 6a946f: [DAGCombiner][PowerPC] Remove isMulhCheaperThanMul...

Amy Kwan via All-commits all-commits at lists.llvm.org
Mon Oct 19 10:24:09 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6a946fd06fa0b0215fe366c54320bc20736a7a71
      https://github.com/llvm/llvm-project/commit/6a946fd06fa0b0215fe366c54320bc20736a7a71
  Author: Amy Kwan <amy.kwan1 at ibm.com>
  Date:   2020-10-19 (Mon, 19 Oct 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/TargetLowering.h
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    M llvm/lib/Target/PowerPC/PPCISelLowering.h
    M llvm/test/CodeGen/X86/pmulh.ll

  Log Message:
  -----------
  [DAGCombiner][PowerPC] Remove isMulhCheaperThanMulShift TLI hook, Use isOperationLegalOrCustom directly instead.

MULH is often expanded on targets.
This patch removes the isMulhCheaperThanMulShift hook and uses
isOperationLegalOrCustom instead.

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




More information about the All-commits mailing list