summaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api/compile_unit/TestCompileUnitAPI.py
diff options
context:
space:
mode:
authorSimon Dardis <simon.dardis@gmail.com>2022-05-01 19:25:03 +0100
committerSimon Dardis <simon.dardis@gmail.com>2022-05-12 22:33:18 +0100
commita35add4c54be96a42fefc01ae1d74a23e3c16030 (patch)
treebf2b70a651668bb7d890d49933c06d07defa6242 /lldb/test/API/python_api/compile_unit/TestCompileUnitAPI.py
parentc6799d98435df03872b960d95fcfa32718971bd6 (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