]> granicus.if.org Git - llvm/commit
[TargetLowering][DAGCombine][MSP430] add/use hook for Shift Amount Threshold (1/2)
authorSanjay Patel <spatel@rotateright.com>
Sat, 19 Oct 2019 16:57:02 +0000 (16:57 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sat, 19 Oct 2019 16:57:02 +0000 (16:57 +0000)
commit0d04cbb5783c50f77f8d4c136f2dd529aa112ff9
treec766b5eda681befa867e399008f3e627e65c50bb
parent316641232816e55c56eed1ac49e7e8f214444382
[TargetLowering][DAGCombine][MSP430] add/use hook for Shift Amount Threshold (1/2)

Provides a TLI hook to allow targets to relax the emission of shifts, thus enabling
codegen improvements on targets with no multiple shift instructions and cheap selects
or branches.

Contributes to a Fix for PR43559:
https://bugs.llvm.org/show_bug.cgi?id=43559

Patch by: @joanlluch (Joan LLuch)

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375347 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/TargetLowering.h
lib/CodeGen/SelectionDAG/TargetLowering.cpp
lib/Target/MSP430/MSP430ISelLowering.cpp
lib/Target/MSP430/MSP430ISelLowering.h
test/CodeGen/MSP430/shift-amount-threshold.ll