aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2016-08-17 08:11:32 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2016-08-17 08:11:32 +0000
commit622d8b69482a3c8f2a0df0324033719a771932fd (patch)
tree68cacd35181faa08cb0557b268b448c1241f5d1d /gcc/testsuite/gcc.dg
parent892a653cc93da08467301e5cc18ddec7c85462f2 (diff)
downloadgcc-622d8b69482a3c8f2a0df0324033719a771932fd.zip
gcc-622d8b69482a3c8f2a0df0324033719a771932fd.tar.gz
gcc-622d8b69482a3c8f2a0df0324033719a771932fd.tar.bz2
re PR tree-optimization/23855 (loop header should also be pulled out of the inner loop too)
2016-08-17 Richard Biener <rguenther@suse.de> PR tree-optimization/23855 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h. (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we find guards to hoist. Do not update SSA form but rewrite virtuals into loop closed SSA. (find_loop_guard): Adjust to skip already hoisted guards. Do not mark virtuals for renaming or update SSA form. * gcc.dg/loop-unswitch-2.c: Adjust. From-SVN: r239523
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r--gcc/testsuite/gcc.dg/loop-unswitch-2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/loop-unswitch-2.c b/gcc/testsuite/gcc.dg/loop-unswitch-2.c
index 5ebf608..77900f9 100644
--- a/gcc/testsuite/gcc.dg/loop-unswitch-2.c
+++ b/gcc/testsuite/gcc.dg/loop-unswitch-2.c
@@ -11,5 +11,5 @@ void foo (float **a, float **b, float *c, int n, int m, int l)
c[i] += a[i][k] * b[k][j];
}
-/* { dg-final { scan-tree-dump-times "guard hoisted" 2 "unswitch" } } */
+/* { dg-final { scan-tree-dump-times "guard hoisted" 3 "unswitch" } } */