[llvm] r288897 - [AVR] Allow loading from stack slots where src and dest registers are identical
Anton Korobeynikov via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 7 14:09:16 PST 2016
> + // In this case, just use a temporary register.
> + if (DstReg == SrcReg) {
> + TmpLoReg = SCRATCH_REGISTER;
> + TmpHiReg = SCRATCH_REGISTER;
This smells like a hack. Can't you use register scavenger to get free
register here?
--
With best regards, Anton Korobeynikov
Department of Statistical Modelling, Saint Petersburg State University
More information about the llvm-commits
mailing list