r265828 - in /trunk/gcc: ChangeLog auto-inc-dec.c

aoliva@gcc.gnu.org aoliva@gcc.gnu.org
Tue Nov 6 05:33:00 GMT 2018


Author: aoliva
Date: Tue Nov  6 05:33:40 2018
New Revision: 265828

URL: https://gcc.gnu.org/viewcvs?rev=265828&root=gcc&view=rev
Log:
gOlogy: fix debug binds in auto-inc-dec

As auto_inc_dec pass combines incs and mems from different insns, it
often causes regs to temporarily hold a value different from the one
it would before the transformation.  Debug insns within that range
would therefore end up binding to the wrong expression after the
transformation.

This patch adjusts debug binds in the affected range.

for  gcc/ChangeLog

	* auto-inc-dec.c: Include valtrack.h.  Improve comments.
	(reg_next_debug_use): New.
	(attempt_change): Propagate adjusted expression into affected
	debug insns.
	(merge_in_block): Track uses in debug insns.
	(pass_inc_dec::execute): Allocate and release
	reg_next_debug_use.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/auto-inc-dec.c



More information about the Gcc-cvs mailing list