diff options
| author | Simon Dardis <simon.dardis@gmail.com> | 2022-05-01 19:25:03 +0100 |
|---|---|---|
| committer | Simon Dardis <simon.dardis@gmail.com> | 2022-05-12 22:33:18 +0100 |
| commit | a35add4c54be96a42fefc01ae1d74a23e3c16030 (patch) | |
| tree | bf2b70a651668bb7d890d49933c06d07defa6242 /lldb/test/API/python_api/compile_unit/TestCompileUnitAPI.py | |
| parent | c6799d98435df03872b960d95fcfa32718971bd6 (diff) | |
[MIPS] Correct the implementation of the msub optimization
The MIPS backend attempts to combine integer multiply and addition or
subtraction into a madd or msub operation. This optimization is
heavily restricted due to its utility in many cases.
PR/51114 highlighted that the optimization was performed on an
associative basis which is correct in the `add` case but not in
the `sub` case.
Resolve this bug by performing an early exit in the case where the
multiply is the LHS operand of the subtraction.
This resolves PR/51114.
Thanks to digitalseraphim for reporting the issue!
Differential Revision: https://reviews.llvm.org/D124742
Diffstat (limited to 'lldb/test/API/python_api/compile_unit/TestCompileUnitAPI.py')
0 files changed, 0 insertions, 0 deletions
