Hi, I've noticed that a test in g++.dg/tree-ssa/pr45605.C is Xfailed, even though early FRE now does the devirtualization that it tests for. True, the current scan happens over the SSA dump (which implies the front-end was somehow supposed to do it?) but I think that given we do perform the optimization, checking that we continue to do so is useful, hence the following change.
Tested by adding to a successful bootstrap and test run on x86_64. Unless anyone objects, I will commit the patch tomorrow. Thanks, Martin 2011-10-25 Martin Jambor <mjam...@suse.cz> * g++.dg/tree-ssa/pr45605.C: Scan fre1 dump and unxfail. Index: src/gcc/testsuite/g++.dg/tree-ssa/pr45605.C =================================================================== --- src.orig/gcc/testsuite/g++.dg/tree-ssa/pr45605.C +++ src/gcc/testsuite/g++.dg/tree-ssa/pr45605.C @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O1 -fdump-tree-ssa" } */ +/* { dg-options "-O1 -fdump-tree-fre1" } */ extern "C" void abort(); bool destructor_called = false; @@ -33,5 +33,5 @@ int main() { /* We should devirtualize call to D::Run */ -/* { dg-final { scan-tree-dump-times "D::Run \\(" 1 "ssa" { xfail *-*-* } } } */ -/* { dg-final { cleanup-tree-dump "ssa" } } */ +/* { dg-final { scan-tree-dump-times "D::Run \\(" 1 "fre1" } } */ +/* { dg-final { cleanup-tree-dump "fre1" } } */