Fix PR45948: add ssa defs from builtin partitions to the last partition.
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Dec 2010 05:04:30 +0000 (05:04 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Dec 2010 05:04:30 +0000 (05:04 +0000)
commitdb990c65db9f947154ac8126013e25315c265790
treeb6244af510098066a33efd97408230f217050a23
parent16bd2f3cbfa8c8526eeb3ed89b2f880fee4a9553
Fix PR45948: add ssa defs from builtin partitions to the last partition.

2010-12-14  Sebastian Pop  <sebastian.pop@amd.com>

PR tree-optimization/45948
* tree-loop-distribution.c (ssa_name_has_uses_outside_loop_p): New.
(stmt_has_scalar_dependences_outside_loop): New.
(stmt_generated_in_another_partition): New.
(add_scalar_computations_to_partition): New.
(rdg_build_partitions): Call add_scalar_computations_to_partition.

* gcc.dg/tree-ssa/ldist-pr45948.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167842 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ldist-pr45948.c [new file with mode: 0644]
gcc/tree-loop-distribution.c