mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 14:40:10 +01:00
nir: Drop no-op all_srcs_are_ssa
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24432>
This commit is contained in:
parent
92e59b5af5
commit
3f5e8b85f7
1 changed files with 0 additions and 13 deletions
|
|
@ -57,16 +57,6 @@ is_two_src_comparison(const nir_alu_instr *instr)
|
|||
}
|
||||
}
|
||||
|
||||
static bool
|
||||
all_srcs_are_ssa(const nir_alu_instr *instr)
|
||||
{
|
||||
for (unsigned i = 0; i < nir_op_infos[instr->op].num_inputs; i++) {
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
static bool
|
||||
all_uses_are_bcsel(const nir_alu_instr *instr)
|
||||
{
|
||||
|
|
@ -103,9 +93,6 @@ nir_opt_rematerialize_compares_impl(nir_shader *shader, nir_function_impl *impl)
|
|||
if (!is_two_src_comparison(alu))
|
||||
continue;
|
||||
|
||||
if (!all_srcs_are_ssa(alu))
|
||||
continue;
|
||||
|
||||
if (!all_uses_are_bcsel(alu))
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue