diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2019-05-24 08:39:40 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2019-05-24 08:39:40 +0000 |
commit | c1b482f2a5d0b51770276d5bd6cd17b59b5d2dfd (patch) | |
tree | d4e98b68a4bb8c06d65c1448444ea23239e5a5e6 /llvm/lib/CodeGen/SwiftErrorValueTracking.cpp | |
parent | d63a2bb35fb25ca17b3cb6e82bcb2050179381b0 (diff) | |
download | llvm-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