Revert "intel/compiler: split is_partial_write() into two variants"
This reverts commit 40b3abb4d1
.
It is not clear that this commit was entirely correct, and unfortunately
it was pushed by error.
CC: Jason Ekstrand <jason@jlekstrand.net>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
@@ -43,8 +43,7 @@
|
||||
*/
|
||||
|
||||
static bool
|
||||
opt_saturate_propagation_local(fs_visitor *v, bblock_t *block,
|
||||
unsigned dispatch_width)
|
||||
opt_saturate_propagation_local(fs_visitor *v, bblock_t *block)
|
||||
{
|
||||
bool progress = false;
|
||||
int ip = block->end_ip + 1;
|
||||
@@ -68,7 +67,7 @@ opt_saturate_propagation_local(fs_visitor *v, bblock_t *block,
|
||||
if (scan_inst->exec_size == inst->exec_size &&
|
||||
regions_overlap(scan_inst->dst, scan_inst->size_written,
|
||||
inst->src[0], inst->size_read(0))) {
|
||||
if (scan_inst->is_partial_var_write(dispatch_width) ||
|
||||
if (scan_inst->is_partial_write() ||
|
||||
(scan_inst->dst.type != inst->dst.type &&
|
||||
!scan_inst->can_change_types()))
|
||||
break;
|
||||
@@ -155,7 +154,7 @@ fs_visitor::opt_saturate_propagation()
|
||||
calculate_live_intervals();
|
||||
|
||||
foreach_block (block, cfg) {
|
||||
progress = opt_saturate_propagation_local(this, block, dispatch_width) || progress;
|
||||
progress = opt_saturate_propagation_local(this, block) || progress;
|
||||
}
|
||||
|
||||
/* Live intervals are still valid. */
|
||||
|
Reference in New Issue
Block a user