treewide: Drop some is_ssa if's
Via Coccinelle patch: @@ expression x; @@ -if (!x.is_ssa) { -... -} and likewise with x->is_ssa, with invalid hunks manually filtered out. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24432>
This commit is contained in:

committed by
Marge Bot

parent
ba5aaf2ff7
commit
579bc1e72e
@@ -72,9 +72,6 @@ nir_collect_src_uniforms(const nir_src *src, int component,
|
||||
uint32_t *uni_offsets, uint8_t *num_offsets,
|
||||
unsigned max_num_bo, unsigned max_offset)
|
||||
{
|
||||
if (!src->is_ssa)
|
||||
return false;
|
||||
|
||||
assert(max_num_bo > 0 && max_num_bo <= MAX_NUM_BO);
|
||||
assert(component < src->ssa->num_components);
|
||||
|
||||
@@ -177,9 +174,6 @@ is_induction_variable(const nir_src *src, int component, nir_loop_info *info,
|
||||
uint32_t *uni_offsets, uint8_t *num_offsets,
|
||||
unsigned max_num_bo, unsigned max_offset)
|
||||
{
|
||||
if (!src->is_ssa)
|
||||
return false;
|
||||
|
||||
assert(component < src->ssa->num_components);
|
||||
|
||||
/* Return true for induction variable (ie. i in for loop) */
|
||||
|
Reference in New Issue
Block a user