diff options
author | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-03-10 08:53:57 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-03-10 08:53:57 +0100 |
commit | 5558f089e39350824d7bc3d5467f72e1e90b2fae (patch) | |
tree | 048b43e76b3678907b012f3965fd13785fdd8779 /gcc/gimple-ssa-warn-alloca.c | |
parent | e837554452518ca73af4ec64b0468991fdff4f7d (diff) | |
download | gcc-5558f089e39350824d7bc3d5467f72e1e90b2fae.zip gcc-5558f089e39350824d7bc3d5467f72e1e90b2fae.tar.gz gcc-5558f089e39350824d7bc3d5467f72e1e90b2fae.tar.bz2 |
re PR tree-optimization/77975 (Missed optimization for some small constants)
PR tree-optimization/77975
* tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
edge to be constant.
(get_val_for): For constant x return it. Formatting fix.
(loop_niter_by_eval): Avoid pointless looping if the next iteration
would use the same bases as the current one.
* gcc.dg/pr77975.c: New test.
From-SVN: r246021
Diffstat (limited to 'gcc/gimple-ssa-warn-alloca.c')
0 files changed, 0 insertions, 0 deletions