Question regarding preventing optimizing out of register in expansion
Peter Bergner
bergner@linux.ibm.com
Tue Jun 26 19:20:00 GMT 2018
On 6/26/18 4:05 AM, Peryt, Sebastian wrote:
> With some changes simplified implementation of my expansion is as follows:
> tmp_op0 = gen_reg_rtx (mode);
> emit_move_insn (tmp_op0, op0);
You set tmp_op0 here, and then....
> emit_insn (gen_rtx_SET (tmp_op0, reg));
You set it again here without ever using it above, so it's dead code,
which explains why it's removed.
Peter
More information about the Gcc
mailing list