Commit da976fa8 by Alan Lawrence Committed by Alan Lawrence

Un-XFAIL ssa-dom-cse-2.c for most platforms

	* gcc.dg/tree-ssa/ssa-dom-cse-2.c: Remove XFAIL for powerpc(32), hppa,
	aarch64, sparc, s390. Add --param sra-max-scalarization-size-Ospeed.

From-SVN: r232510
parent 806f2c1b
2016-01-18 Alan Lawrence <alan.lawrence@arm.com> 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
PR target/63679 PR target/63679
* gcc.dg/tree-ssa/ssa-dom-cse-2.c: Remove XFAIL for powerpc(32), hppa,
aarch64, sparc, s390. Add --param sra-max-scalarization-size-Ospeed.
2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
PR target/63679
* gcc.dg/tree-ssa/ssa-dom-cse-5.c: New. * gcc.dg/tree-ssa/ssa-dom-cse-5.c: New.
* gcc.dg/tree-ssa/ssa-dom-cse-6.c: New. * gcc.dg/tree-ssa/ssa-dom-cse-6.c: New.
* gcc.dg/tree-ssa/ssa-dom-cse-7.c: New. * gcc.dg/tree-ssa/ssa-dom-cse-7.c: New.
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O3 -fno-tree-fre -fno-tree-pre -fdump-tree-optimized" } */ /* { dg-options "-O3 -fno-tree-fre -fno-tree-pre -fdump-tree-optimized --param sra-max-scalarization-size-Ospeed=32" } */
int int
foo () foo ()
...@@ -17,7 +17,8 @@ foo () ...@@ -17,7 +17,8 @@ foo ()
/* After late unrolling the above loop completely DOM should be /* After late unrolling the above loop completely DOM should be
able to optimize this to return 28. */ able to optimize this to return 28. */
/* See PR63679 and PR64159, if the target forces the initializer to memory then /* On alpha, the vectorizer generates writes of two vector elements at once,
DOM is not able to perform this optimization. */ but the loop reads only one element at a time, and DOM cannot resolve these.
The same happens on powerpc depending on the SIMD support available. */
/* { dg-final { scan-tree-dump "return 28;" "optimized" { xfail aarch64*-*-* alpha*-*-* hppa*-*-* powerpc*-*-* sparc*-*-* s390*-*-* } } } */ /* { dg-final { scan-tree-dump "return 28;" "optimized" { xfail alpha*-*-* powerpc64*-*-* } } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment