From fd2ef5123accb3cd6613b85dcb415baeb5c2a377 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Tue, 2 Jul 2019 17:01:53 -0600 Subject: [PATCH] re PR tree-optimization/90883 (Generated code is worse if returned struct is unnamed) 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 | 6 ++++++ gcc/testsuite/g++.dg/tree-ssa/pr90883.C | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 55deef7255d..9bb683facbd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-07-02 Jeff Law + + 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 PR preprocessor/90581 diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr90883.C b/gcc/testsuite/g++.dg/tree-ssa/pr90883.C index 005b2103b4b..c5faffa1f32 100644 --- a/gcc/testsuite/g++.dg/tree-ssa/pr90883.C +++ b/gcc/testsuite/g++.dg/tree-ssa/pr90883.C @@ -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-*-* } } } -- 2.30.2