diff options
author | Ayke van Laethem <aykevanlaethem@gmail.com> | 2022-01-06 18:22:06 +0100 |
---|---|---|
committer | Ayke van Laethem <aykevanlaethem@gmail.com> | 2022-01-19 14:22:13 +0100 |
commit | ca27b026f990da2e67cbcc371480af9cad6a65d7 (patch) | |
tree | 97e3b03b6b386b7db52770c7544e83505fdc3333 /lldb/source/Plugins/ScriptInterpreter/Python | |
parent | 3d59d94a206a840d780c8f34610977734095149a (diff) | |
download | llvm-ca27b026f990da2e67cbcc371480af9cad6a65d7.zip llvm-ca27b026f990da2e67cbcc371480af9cad6a65d7.tar.gz llvm-ca27b026f990da2e67cbcc371480af9cad6a65d7.tar.bz2 |
[AVR] Do not clear r0 at interrupt entry
There is no reason to do this: it's a scratch register and can therefore
hold any arbitrary value. And because it is in an interrupt, this code
is performance critical so it should be as short as possible.
I believe r0 was cleared because of the following:
1. There used to be a bug that the cleared register was r0, not r1 as
it should have been.
2. This was fixed in https://reviews.llvm.org/D99467, but left the code
to clear r0.
This patch completes D99467 by removing the `clr r0` instruction.
Differential Revision: https://reviews.llvm.org/D116756
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions