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 GCC][PR62173 partial/1]Preserve ssa name (thus vrp info) for IV structure


Hi,
When dealing with PR62173, we found places in which overflow check on SCEVs
can be improved by range information.  This patch addresses one of them.
Richard once suggested that we should trace range info all the way through
SCEV thus have it on CHREC structure.  But as far as IVOPTs is concerned,
there is already the information because for each IV, we have the
corresponding ssa name field.  The only problem is GCC now releases this
field to make iv dump routines easier.  This is a trivial patch fixing this.


Bootstrap and test along with the other one.  Is it OK?

Thanks,
bin

2015-02-13  Bin Cheng  <bin.cheng@arm.com>

	PR tree-optimization/62173
	* tree-ssa-loop-ivopts.c (dump_iv): New parameter.
	(dump_use, dump_cand, find_induction_variables): Pass new argument
	to dump_iv.
	(record_use): Preserve the ssa name information in IV.

Attachment: preserve-ssa_name-in-iv-20150203.txt
Description: Text document


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