diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2009-01-29 18:23:21 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2009-01-29 18:23:21 +0000 |
commit | d5e54bc10671f59d7a38b05023be5c43d0bca771 (patch) | |
tree | ceff6833d1922d30a87ed2cc8371506158699fac /gcc/testsuite/gcc.dg/tree-ssa | |
parent | 90ef7773275cd355128818a0593d721f2a972cce (diff) | |
download | gcc-d5e54bc10671f59d7a38b05023be5c43d0bca771.zip gcc-d5e54bc10671f59d7a38b05023be5c43d0bca771.tar.gz gcc-d5e54bc10671f59d7a38b05023be5c43d0bca771.tar.bz2 |
re PR tree-optimization/39007 (-ftree-loop-distribution ICEs)
gcc/
PR tree-optimization/39007
* tree-loop-distribution.c (generate_builtin): Use
recompute_dominator to compute the immediate dominator of the
basic block just after the loop.
gcc/testsuite/
PR tree-optimization/39007
* gcc.dg/tree-ssa/pr39007.c: New.
From-SVN: r143767
Diffstat (limited to 'gcc/testsuite/gcc.dg/tree-ssa')
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/pr39007.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr39007.c b/gcc/testsuite/gcc.dg/tree-ssa/pr39007.c new file mode 100644 index 0000000..94b2443 --- /dev/null +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr39007.c @@ -0,0 +1,13 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -ftree-loop-distribution" } */ + +void +foo (int *__restrict__ p, int *__restrict__ q, int count) +{ + int i; + for (i = 0; i < count; i++) + { + *p++ = 0; + *q++ = 0; + } +} |