PR tree-optimization/41488
commit8e19549ab21824bb5597c990f785cb0c132b4b2c
authoramker <amker@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Dec 2013 06:31:41 +0000 (10 06:31 +0000)
committeramker <amker@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Dec 2013 06:31:41 +0000 (10 06:31 +0000)
treed09b43ffc879c38e2b20679506d9a4707fdd5ea0
parente7d8908f32677b7b1344a5984a042023965a98e1
PR tree-optimization/41488
* tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
for PEELED_CHREC kind IV.
* tree-scalar-evolution.c: Include necessary header files.
(peeled_chrec_map, simplify_peeled_chrec): New.
(analyze_evolution_in_loop): New static variable.
Call simplify_peeled_chrec.
(scev_initialize): Initialize peeled_chrec_map.
(scev_reset, scev_finalize): Reset and release peeled_chrec_map.

PR tree-optimization/41488
* gcc.dg/tree-ssa/scev-7.c: New test.
* gcc.dg/pr41488.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205848 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr41488.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/scev-7.c [new file with mode: 0644]
gcc/tree-scalar-evolution.c
gcc/tree-ssa-loop-ivopts.c