re PR tree-optimization/90883 (Generated code is worse if returned struct is unnamed)
authorJeff Law <law@redhat.com>
Tue, 2 Jul 2019 23:01:53 +0000 (17:01 -0600)
committerJeff Law <law@gcc.gnu.org>
Tue, 2 Jul 2019 23:01:53 +0000 (17:01 -0600)
PR tree-optimization/90883
* g++.dg/tree-ssa/pr90883.c: Add -Os.  Check dse2 for the
deleted store on some targets.

From-SVN: r272949

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-ssa/pr90883.C

index 55deef7255dc20a505c5de63de8ad006339e200a..9bb683facbd8495d5cff429518e55a042fcd5149 100644 (file)
@@ -1,3 +1,9 @@
+2019-07-02  Jeff Law  <law@redhat.com>
+
+       PR tree-optimization/90883
+       * g++.dg/tree-ssa/pr90883.c: Add -Os.  Check dse2 for the
+       deleted store on some targets.
+
 2019-07-02  qing zhao  <qing.zhao@oracle.com>
 
        PR preprocessor/90581
index 005b2103b4b961456bf18b0d00bd0e24c5176de6..c5faffa1f32deb54f31dcfcd5828a08486d63dfd 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-O2 -fdump-tree-dse1-details -std=c++11" }
+// { dg-options "-O2 -Os -fdump-tree-dse-details -std=c++11" }
 
 
     class C
@@ -15,5 +15,6 @@
 
 // We want to match enough here to capture that we deleted an empty
 // constructor store
-// { dg-final { scan-tree-dump "Deleted redundant store: .*\.a = {}" "dse1" } }
+// { dg-final { scan-tree-dump "Deleted redundant store: .*\.a = {}" "dse1" { target { ! i?86-*-* } } } }
+// { dg-final { scan-tree-dump "Deleted redundant store: .*\.a = {}" "dse2" { target i?86-*-* } } }