diff options
author | Moritz Roth <moritz.roth@arm.com> | 2014-08-21 17:11:03 +0000 |
---|---|---|
committer | Moritz Roth <moritz.roth@arm.com> | 2014-08-21 17:11:03 +0000 |
commit | dfdda0d41cf0b5d2ca5271e83ae212baedfcd847 (patch) | |
tree | 2332d174a78d7823115e6500b5fe52d3fd4de1cb /lldb/source/Core/Log.cpp | |
parent | f4cb5732685cdd48b3f29e621020cf24c89358dc (diff) | |
download | bcm5719-llvm-dfdda0d41cf0b5d2ca5271e83ae212baedfcd847.tar.gz bcm5719-llvm-dfdda0d41cf0b5d2ca5271e83ae212baedfcd847.zip |
Thumb1 load/store optimizer: Improve code to materialize new base register.
There are two add-immediate instructions in Thumb1: tADDi8 and tADDi3. Only
the latter supports using different source and destination registers, so
whenever we materialize a new base register (at a certain offset) we'd do
so by moving the base register value to the new register and then adding in
place. This patch changes the code to use a single tADDi3 if the offset is
small enough to fit in 3 bits.
Differential Revision: http://reviews.llvm.org/D5006
llvm-svn: 216193
Diffstat (limited to 'lldb/source/Core/Log.cpp')
0 files changed, 0 insertions, 0 deletions