Instead of loading the zero value into a new register and then spilling
it into the stack, we can use the $zero register immediatelly.
This patch also changes the semantics of the foldMemoryOperandImpl()
method in order to insert the newly constructed instruction into the
machine basic block.
Details
Details
- Reviewers
dsanders
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I think this patch might have been missed because it has a '[mips]' tag but it affects SystemZ and X86 too. I'd suggest re-sending it with a more generic subject. Maybe something like 'Make foldMemoryOperandImpl() insert instructions instead of caller' and go on to say something like 'and use this to store zero to memory using $zero on Mips'.