aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/tree-ssa-loop-niter.c
Commit message (Collapse)AuthorAgeFilesLines
* Cherrypick PR bootstrap/66638 bugfix from trunk.amker2015-12-161-1/+15
| | | | | | | | | | | | | | PR bootstrap/66638 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if assertion failed. Remove assertion itself. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225008 138bc75d-0d04-0410-961f-82ee72b054a4 Bug: 26224556 Change-Id: I2fa31bfe44978659a554a413c64d796b357338b5 Signed-off-by: Than McIntosh <thanm@google.com>
* PR tree-optimization/48052Aditya Kumar2015-08-271-62/+228
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 05032b10839cf0498c992c819bf2358e86c22bb0 Author: amker <amker@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Tue Jun 2 10:19:18 2015 +0000 PR tree-optimization/48052 * cfgloop.h (struct control_iv): New. (struct loop): New field control_ivs. * tree-ssa-loop-niter.c : Include "stor-layout.h". (number_of_iterations_lt): Set no_overflow information. (number_of_iterations_exit): Init control iv in niter struct. (record_control_iv): New. (estimate_numbers_of_iterations_loop): Call record_control_iv. (loop_exits_before_overflow): New. Interface factored out of scev_probably_wraps_p. (scev_probably_wraps_p): Factor loop niter related code into loop_exits_before_overflow. (free_numbers_of_iterations_estimates_loop): Free control ivs. * tree-ssa-loop-niter.h (free_loop_control_ivs): New. gcc/testsuite/ChangeLog PR tree-optimization/48052 * gcc.dg/tree-ssa/scev-8.c: New. * gcc.dg/tree-ssa/scev-9.c: New. * gcc.dg/tree-ssa/scev-10.c: New. * gcc.dg/vect/pr48052.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224020 138bc75d-0d04-0410-961f-82ee72b054a4
* Synchronize with google/gcc-4_9 to r224707 (from r214835)Yiran Wang2015-06-291-0/+3
| | | | Change-Id: I3d6f06fc613c8f8b6a82143dc44b7338483aac5d
* [4.9] Fix bogus warnings about array-bounds.Alexander Ivchenko2015-01-281-1/+16
| | | | | | | | | | | | | | | | | | | | | | | 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com> PR tree-optimization/64277 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base range info when possible to refine estimation. 2015-01-27 Richard Biener <rguenther@suse.de> PR tree-optimization/56273 PR tree-optimization/59124 PR tree-optimization/64277 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only from the first VRP pass. * g++.dg/warn/Warray-bounds-6.C: New testcase. * gcc.dg/Warray-bounds-12.c: Likewise. * gcc.dg/Warray-bounds-13.c: Likewise. Change-Id: I175b420a4c8150ecf986d477e4c51cbbff276c82 Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
* Initial checkin of GCC 4.9.0 from trunk (r208799).Ben Cheng2014-03-251-0/+3893
Change-Id: I48a3c08bb98542aa215912a75f03c0890e497dba