diff options
| author | Tim Northover <tnorthover@apple.com> | 2018-06-20 12:09:44 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2018-06-20 12:09:44 +0000 |
| commit | 644a81953417eaf0176c11927c880309dd73c486 (patch) | |
| tree | 3211c6ad56320823daf612dfc2c1baa7c11d6e9a /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | |
| parent | 70666e7765335ebe84e71df6f98b5220589348f1 (diff) | |
ARM: convert ORR instructions to ADD where possible on Thumb.
Thumb has more 16-bit encoding space dedicated to ADD than ORR, allowing both a
3-address encoding and a wider range of immediates. So, particularly when
optimizing for code size (but it doesn't make things worse elsewhere) it's
beneficial to select an OR operation to an ADD if we know overflow won't occur.
This is made even better by LLVM's penchant for putting operations in canonical
form by converting the other way.
llvm-svn: 335119
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions
