This is the mail archive of the
mailing list for the GCC project.
Re: Seeking suggestion
Jamie Prescott wrote:
Is there a reason why something like this would not work?
emit_insn(gen_addsi3_nc(operands, operands, operands));
Yes. The optimizer will not know that addsi3_nc uses CC_REGNUM, as it
is not mentioned, so the optimizer will not know that these two RTL
instructions always need to remain next to each other. Any optimization
pass that moves insns around may separate the add from the clobber
resulting in broken code. This is what parallels are for, to make sure
that the clobber and add stay together.