In this case, we're supposed to load the address of the symbol in AT and then ADDu it with the source register and
put it in the destination register.
Details
Diff Detail
Event Timeline
LGTM with the repetition removed.
lib/Target/Mips/AsmParser/MipsAsmParser.cpp | ||
---|---|---|
2029–2030 | Instead of repeating `UseAT ? ATReg : DstReg`, why not define a new variable for the temporary register to use? |
Toma tells me he's going to untangle this patch from the patches it depends on. The problem is that a couple of those patches have uncovered badly broken MCExpr simplification which is blocking them.
Replaced the UseAT variable with its corresponding condition, as it was being used only once.
Put the "SrcReg != Mips::NoRegister" condition in a variable, as it is now used twice.
Shortened the name of IntermediateDstReg to TmpReg.
Rebased on top of the new D9523 and D9348.
Removed unnecessary dependencies on other patches.
Rebased.
I think this is the final version of this patch, as all of its dependencies have been committed.
Daniel, could take another look at this please ?
Instead of repeating `UseAT ? ATReg : DstReg`, why not define a new variable for the temporary register to use?