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]

Re: [PATCH PR72772]Also check equality for expanded iv base.


On 08/03/2016 10:35 AM, Bin Cheng wrote:
Hi,
Following previous patch, this one fixes PR72772 by checking equality for expanded iv base.  Richard is fixing the PR by removing degenerate PHI at the first place, but I think this one also catches more cases.
Bootstrap and test on x86_64 and AArch64.  Is it OK?

Thanks,
bin

2016-08-02  Bin Cheng  <bin.cheng@arm.com>

	PR tree-optimization/72772
	* tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
	for expanded base.

gcc/testsuite/ChangeLog
2016-08-02  Bin Cheng  <bin.cheng@arm.com>

	PR tree-optimization/pr72772
	* gcc.dg/tree-ssa/pr72772.c: New test.

OK.
jeff


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