This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix PR tree-opt/19736


The problem here is that once we propagate into a foldable
statement and fold the statement by Reduce PHI but we don't change the
use information.  This causes us not to propagate the other SSA_NAME
into the new statement because the use information is not up todate,
well we propagate it into the old statement.  This patch updates the
use information for the new statement when we propagate a constant and
fold the statement (and change the statement).

OK? Bootstrapped and tested on powerpc-darwin7 with no regressions.

Thanks,
Andrew Pinski

ChangeLog:

	* tree-ssa.c (replace_immediate_uses): Update the immediate_uses
	information for the new statement.

Attachment: temp1.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]