diff options
author | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-21 12:42:56 +0000 |
---|---|---|
committer | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-21 12:42:56 +0000 |
commit | 4cc34f6b649e487072e3f524a54e991b2018407a (patch) | |
tree | d7652aeb28de12dec7e472552b4b64b5b530229c /gcc/tree-data-ref.c | |
parent | 7eb7376baa7c4a02015dc9a34487b8c90654ec4e (diff) | |
download | gcc-4cc34f6b649e487072e3f524a54e991b2018407a.tar.gz |
2008-03-21 Martin Jambor <mjambor@suse.cz>
* tree-data-ref.c (dump_data_dependence_relation): Avoid data
reference dumps if ddr is NULL or dependence is unknown.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133419 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-data-ref.c')
-rw-r--r-- | gcc/tree-data-ref.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c index f8faed813c7..3a204d51621 100644 --- a/gcc/tree-data-ref.c +++ b/gcc/tree-data-ref.c @@ -358,17 +358,20 @@ dump_data_dependence_relation (FILE *outf, { struct data_reference *dra, *drb; - dra = DDR_A (ddr); - drb = DDR_B (ddr); fprintf (outf, "(Data Dep: \n"); + if (!ddr || DDR_ARE_DEPENDENT (ddr) == chrec_dont_know) + { + fprintf (outf, " (don't know)\n)\n"); + return; + } + + dra = DDR_A (ddr); + drb = DDR_B (ddr); dump_data_reference (outf, dra); dump_data_reference (outf, drb); - if (DDR_ARE_DEPENDENT (ddr) == chrec_dont_know) - fprintf (outf, " (don't know)\n"); - - else if (DDR_ARE_DEPENDENT (ddr) == chrec_known) + if (DDR_ARE_DEPENDENT (ddr) == chrec_known) fprintf (outf, " (no dependence)\n"); else if (DDR_ARE_DEPENDENT (ddr) == NULL_TREE) |