mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 20:10:14 +01:00
i965: Don't try copy propagation if constant propagation succeeded.
It cannot get any better. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
dcf5e19e65
commit
c70b7c80e3
2 changed files with 2 additions and 4 deletions
|
|
@ -737,8 +737,7 @@ fs_visitor::opt_copy_propagate_local(void *copy_prop_ctx, bblock_t *block,
|
|||
foreach_in_list(acp_entry, entry, &acp[inst->src[i].nr % ACP_HASH_SIZE]) {
|
||||
if (try_constant_propagate(inst, entry))
|
||||
progress = true;
|
||||
|
||||
if (try_copy_propagate(inst, i, entry))
|
||||
else if (try_copy_propagate(inst, i, entry))
|
||||
progress = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -453,8 +453,7 @@ vec4_visitor::opt_copy_propagation(bool do_constant_prop)
|
|||
|
||||
if (do_constant_prop && try_constant_propagate(devinfo, inst, i, &entry))
|
||||
progress = true;
|
||||
|
||||
if (try_copy_propagate(devinfo, inst, i, &entry, attributes_per_reg))
|
||||
else if (try_copy_propagate(devinfo, inst, i, &entry, attributes_per_reg))
|
||||
progress = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue