freedreno/ir3: keep array stores
Since these are not in SSA form, add to block's keeps so it doesn't appear unused. Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
c60f150d56
commit
8ea1ef4191
1 changed files with 6 additions and 0 deletions
|
|
@ -374,6 +374,12 @@ create_array_store(struct ir3_context *ctx, struct ir3_array *arr, int n,
|
|||
|
||||
arr->last_write = mov;
|
||||
|
||||
/* the array store may only matter to something in an earlier
|
||||
* block (ie. loops), but since arrays are not in SSA, depth
|
||||
* pass won't know this.. so keep all array stores:
|
||||
*/
|
||||
array_insert(block, block->keeps, mov);
|
||||
|
||||
return mov;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue