Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: gcc/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-9.c

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* { dg-do compile } */ 1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-fre-stats" } */ 2 /* { dg-options "-O -fno-tree-sra -fdump-tree-fre-stats" } */
3 3
4 union loc { 4 union loc {
5 unsigned reg; 5 unsigned reg;
6 signed offset; 6 signed offset;
7 }; 7 };
8 void __frame_state_for2 (volatile char *state_in) 8 void __frame_state_for2 (volatile char *state_in)
9 { 9 {
10 union loc fs; 10 union loc fs;
11 { 11 {
12 *state_in = fs.reg; 12 *state_in = fs.reg;
13 *state_in = fs.offset; 13 *state_in = fs.offset;
14 } 14 }
15 } 15 }
16 void __frame_state_for1 (volatile char *state_in) 16 void __frame_state_for1 (volatile char *state_in)
17 { 17 {
18 union loc fs; 18 union loc fs;
19 for (;;) 19 for (;;)
20 { 20 {
21 *state_in = fs.offset; 21 *state_in = fs.offset;
22 *state_in = fs.reg; 22 *state_in = fs.reg;
23 } 23 }
24 } 24 }
25 25
26 /* { dg-final { scan-tree-dump-times "Eliminated: 1" 2 "fre" } } */ 26 /* { dg-final { scan-tree-dump-times "Eliminated: 1" 2 "fre" } } */
27 /* { dg-final { scan-tree-dump-times "Insertions: 1" 2 "fre" } } */ 27 /* { dg-final { scan-tree-dump-times "Insertions: 1" 2 "fre" } } */
28 /* { dg-final { cleanup-tree-dump "fre" } } */ 28 /* { dg-final { cleanup-tree-dump "fre" } } */
OLDNEW
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-8.c ('k') | gcc/gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-2.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698