aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectThread.cpp
diff options
context:
space:
mode:
authorAyke van Laethem <aykevanlaethem@gmail.com>2022-01-16 08:42:48 +0100
committerAyke van Laethem <aykevanlaethem@gmail.com>2022-01-23 17:08:01 +0100
commit116ab78694dd2ad903c3fb101d48e01855282bf8 (patch)
tree1b0172272f53078d1652bf778a817461d55cb823 /lldb/source/Commands/CommandObjectThread.cpp
parent153359180a9d5a6cea3985db5d3396218dc6252d (diff)
downloadllvm-116ab78694dd2ad903c3fb101d48e01855282bf8.zip
llvm-116ab78694dd2ad903c3fb101d48e01855282bf8.tar.gz
llvm-116ab78694dd2ad903c3fb101d48e01855282bf8.tar.bz2
[AVR] Make use of the constant value 0 in R1
The register R1 is defined to have the constant value 0 in the avr-gcc calling convention (which we follow). Unfortunately, we don't really make use of it. This patch replaces `LDI 0` instructions with a copy from R1. This reduces code size: my AVR build of compiler-rt goes from 50660 to 50240 bytes of code size, which is a 0.8% reduction. Presumably it will also improve execution speed, although I didn't measure this. Differential Revision: https://reviews.llvm.org/D117425
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
0 files changed, 0 insertions, 0 deletions