Commit 013e9266 by Razya Ladelsky Committed by Razya Ladelsky

matrix-reorg.c (analyze_matrix_allocation_site): Avoid referring to an unallocated space.

2007-07-31  Razya Ladelsky  <razya@il.ibm.com>

        * matrix-reorg.c (analyze_matrix_allocation_site): Avoid referring 
        to an unallocated space.

From-SVN: r127082
parent 06cb4f79
2007-07-31 Razya Ladelsky <razya@il.ibm.com>
* matrix-reorg.c (analyze_matrix_allocation_site): Avoid referring
to an unallocated space.
2007-07-30 Jan Sjodin <jan.sjodin@amd.com>
* tree-data-ref.c
......
......@@ -818,11 +818,15 @@ analyze_matrix_allocation_site (struct matrix_info *mi, tree stmt,
return;
}
}
/* This is a call to malloc. Check to see if this is the first
call in this indirection level; if so, mark it; if not, mark
as escaping. */
/* This is a call to malloc of level 'level'.
mi->max_malloced_level-1 == level means that we've
seen a malloc statement of level 'level' before.
If the statement is not the same one that we've
seen before, then there's another malloc statement
for the same level, which means that we need to mark
it escaping. */
if (mi->malloc_for_level
&& mi->malloc_for_level[level]
&& mi->max_malloced_level-1 == level
&& mi->malloc_for_level[level] != stmt)
{
mark_min_matrix_escape_level (mi, level, stmt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment