diff options
author | Jeff Law <law@redhat.com> | 2011-02-08 11:54:12 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2011-02-08 11:54:12 -0700 |
commit | 2cfeef883338978fa1ec18254b183fad4735f644 (patch) | |
tree | e7a94f252184852623bf5220d2d84b792474cacf | |
parent | d2b0caaab886179f1f8b57ea4d889426e644466e (diff) | |
download | gcc-2cfeef883338978fa1ec18254b183fad4735f644.zip gcc-2cfeef883338978fa1ec18254b183fad4735f644.tar.gz gcc-2cfeef883338978fa1ec18254b183fad4735f644.tar.bz2 |
re PR tree-optimization/42893 (Missed conditionally dead store elimination)
PR tree-optimization/42893
* gcc.tree-ssa/pr42893.c: New test.
From-SVN: r169933
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/pr42893.c | 30 |
2 files changed, 35 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8ceef88..5a4fb3d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-02-08 Jeff Law <law@redhat.com> + + PR tree-optimization/42893 + * gcc.tree-ssa/pr42893.c: New test. + 2011-02-08 Sebastian Pop <sebastian.pop@amd.com> PR tree-optimization/46834 diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr42893.c b/gcc/testsuite/gcc.dg/tree-ssa/pr42893.c new file mode 100644 index 0000000..b3fbd76 --- /dev/null +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr42893.c @@ -0,0 +1,30 @@ +/* { dg-do compile } */ +/* { dg-options "-O3 -fdump-tree-optimized" } */ + +struct frame_info; +void tui_registers_changed_hook (void); +extern struct frame_info *deprecated_selected_frame; +int tui_refreshing_registers = 0; +void +tui_registers_changed_hook (void) +{ + struct frame_info *fi; + fi = deprecated_selected_frame; + if (fi) + + { + if (tui_refreshing_registers == 0) + + { + tui_refreshing_registers = 1; + tui_refreshing_registers = 0; + } + } + return; +} + +/* No references to tui_refreshing_registers should remain. */ +/* { dg-final { scan-tree-dump-not "tui_refreshing_registers" "optimized"} } */ + +/* { dg-final { cleanup-tree-dump "optimized" } } */ + |