diff options
author | Sebastian Pop <sebastian.pop@amd.com> | 2010-08-11 20:24:47 +0000 |
---|---|---|
committer | Sebastian Pop <spop@gcc.gnu.org> | 2010-08-11 20:24:47 +0000 |
commit | d4332d00176fc5613d3b64d83a4604fbe3021328 (patch) | |
tree | 1e69f8e8919644c19f143000a8f70f834cd85fd5 /gcc/tree-ssa-loop.c | |
parent | 14d0e129cccf5a3aaec486d19a5a2942c882f904 (diff) | |
download | gcc-d4332d00176fc5613d3b64d83a4604fbe3021328.zip gcc-d4332d00176fc5613d3b64d83a4604fbe3021328.tar.gz gcc-d4332d00176fc5613d3b64d83a4604fbe3021328.tar.bz2 |
Schedule a copy_prop pass before graphite.
2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
* passes.c (init_optimization_passes): Add pass_graphite.
Schedule a pass_copy_prop before pass_graphite_transforms.
* timevar.def (TV_GRAPHITE): Declared.
* tree-pass.h (pass_graphite): Declared.
* tree-ssa-loop.c (pass_graphite): New.
* gcc.dg/graphite/id-20.c: New.
From-SVN: r163120
Diffstat (limited to 'gcc/tree-ssa-loop.c')
-rw-r--r-- | gcc/tree-ssa-loop.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/tree-ssa-loop.c b/gcc/tree-ssa-loop.c index 7a60144..9523dab 100644 --- a/gcc/tree-ssa-loop.c +++ b/gcc/tree-ssa-loop.c @@ -310,6 +310,25 @@ gate_graphite_transforms (void) return flag_graphite != 0; } +struct gimple_opt_pass pass_graphite = +{ + { + GIMPLE_PASS, + "graphite0", /* name */ + gate_graphite_transforms, /* gate */ + NULL, /* execute */ + NULL, /* sub */ + NULL, /* next */ + 0, /* static_pass_number */ + TV_GRAPHITE, /* tv_id */ + PROP_cfg | PROP_ssa, /* properties_required */ + 0, /* properties_provided */ + 0, /* properties_destroyed */ + 0, /* todo_flags_start */ + 0 /* todo_flags_finish */ + } +}; + struct gimple_opt_pass pass_graphite_transforms = { { |