aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SwiftErrorValueTracking.cpp
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/CodeGen/SwiftErrorValueTracking.cpp
parentd63a2bb35fb25ca17b3cb6e82bcb2050179381b0 (diff)
downloadllvm-c1b482f2a5d0b51770276d5bd6cd17b59b5d2dfd.zip
llvm-c1b482f2a5d0b51770276d5bd6cd17b59b5d2dfd.tar.gz
llvm-c1b482f2a5d0b51770276d5bd6cd17b59b5d2dfd.tar.bz2
[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/CodeGen/SwiftErrorValueTracking.cpp')
0 files changed, 0 insertions, 0 deletions