mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 09:30:20 +01:00
nir/nir_opt_move: fix ALWAYS_INLINE compiler error
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Closes: #6825 Fixes:f1d20ec6("nir/nir_opt_move: handle non-SSA defs ") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17439> (cherry picked from commit267dd1f4d5)
This commit is contained in:
parent
264d64cc6c
commit
54cfb552ab
2 changed files with 3 additions and 3 deletions
|
|
@ -166,7 +166,7 @@
|
|||
"description": "nir/nir_opt_move: fix ALWAYS_INLINE compiler error",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "f1d20ec67c3f186886b97de94f74484650f8fda1"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -51,13 +51,13 @@
|
|||
* lower register pressure.
|
||||
*/
|
||||
|
||||
static ALWAYS_INLINE bool
|
||||
static inline bool
|
||||
src_is_ssa(nir_src *src, void *state)
|
||||
{
|
||||
return src->is_ssa;
|
||||
}
|
||||
|
||||
static ALWAYS_INLINE bool
|
||||
static inline bool
|
||||
instr_reads_register(nir_instr *instr)
|
||||
{
|
||||
return !nir_foreach_src(instr, src_is_ssa, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue