diff options
author | Sebastian Pop <sebastian.pop@amd.com> | 2010-08-11 20:24:47 +0000 |
---|---|---|
committer | Sebastian Pop <sebastian.pop@amd.com> | 2010-08-11 20:24:47 +0000 |
commit | 64e058a04020d6fa61495476c55afbd073dca8d4 (patch) | |
tree | 1e69f8e8919644c19f143000a8f70f834cd85fd5 /gcc/tree-ssa-loop.c | |
parent | ba69f5bcc5e40254cae4bbbe3c7a42fb366fcd0e (diff) |
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.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@163120 138bc75d-0d04-0410-961f-82ee72b054a4
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 7a60144d004..9523dab14dd 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 = { { |