summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCSubtarget.h
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2019-05-24 08:39:40 +0000
committerSimon Atanasyan <simon@atanasyan.com>2019-05-24 08:39:40 +0000
commitc1b482f2a5d0b51770276d5bd6cd17b59b5d2dfd (patch)
treed4e98b68a4bb8c06d65c1448444ea23239e5a5e6 /llvm/lib/Target/PowerPC/PPCSubtarget.h
parentd63a2bb35fb25ca17b3cb6e82bcb2050179381b0 (diff)
downloadbcm5719-llvm-c1b482f2a5d0b51770276d5bd6cd17b59b5d2dfd.tar.gz
bcm5719-llvm-c1b482f2a5d0b51770276d5bd6cd17b59b5d2dfd.zip
[mips] Always check that `shift and add` optimization is efficient.
The D45316 introduced the `shouldTransformMulToShiftsAddsSubs` function to check that breaking down constant multiplications into a series of shifts, adds, and subs is efficient. Unfortunately, this function does not check maximum number of steps on all paths of the algorithm. This patch fixes this bug. Fix for PR41929. Differential Revision: https://reviews.llvm.org/D62166 llvm-svn: 361606
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud