summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorBen Shi <powerman1st@163.com>2021-10-12 09:03:16 +0000
committerBen Shi <powerman1st@163.com>2021-10-16 08:50:39 +0000
commit9bf6bef9951a1c230796ccad2c5c0195ce4c4dff (patch)
tree67738e913dbc5c1790c1382b3f2baab5a3dd4a3a /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parentf0711106dc6c14dcaf06437a0467043e983bf9dc (diff)
[AArch64] Optimize add/sub with immediate
Optimize ([add|sub] r, imm) -> ([ADD|SUB] ([ADD|SUB] r, #imm0, lsl #12), #imm1), if imm == (imm0<<12)+imm1. and both imm0 and imm1 are non-zero 12-bit unsigned integers. Optimize ([add|sub] r, imm) -> ([SUB|ADD] ([SUB|ADD] r, #imm0, lsl #12), #imm1), if imm == -(imm0<<12)-imm1, and both imm0 and imm1 are non-zero 12-bit unsigned integers. Reviewed By: jaykang10, dmgreen Differential Revision: https://reviews.llvm.org/D111034
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions