[AVR] Use the register scavenger when expanding 'LDDW' instructions
authorDylan McKay <dylanmckay34@gmail.com>
Sat, 10 Dec 2016 10:51:55 +0000 (10:51 +0000)
committerDylan McKay <dylanmckay34@gmail.com>
Sat, 10 Dec 2016 10:51:55 +0000 (10:51 +0000)
commit5c90b8cb4f3b922dd66c0fdb81193f9d91aa3fb4
treed68e83b4ce108f9b91af998aec3bd1f6094a74b0
parent5d0233bea22a103b5ecb5a9b5453f1206f2defe0
[AVR] Use the register scavenger when expanding 'LDDW' instructions

Summary: This gets rid of the hardcoded 'r0' that was used previously.

Reviewers: asl

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D27567

llvm-svn: 289322
llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp
llvm/test/CodeGen/AVR/pseudo/expand-lddw-dst-src-same.mir