aco: Fixes -Werror,-Wbitwise-instead-of-logical for clang-15 in aco_optimizer.cpp
error message: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical] Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19969>
This commit is contained in:
@@ -3783,7 +3783,7 @@ combine_instruction(opt_ctx& ctx, aco_ptr<Instruction>& instr)
|
||||
if (can_apply_sgprs(ctx, instr))
|
||||
apply_sgprs(ctx, instr);
|
||||
combine_mad_mix(ctx, instr);
|
||||
while (apply_omod_clamp(ctx, instr) | combine_output_conversion(ctx, instr))
|
||||
while (apply_omod_clamp(ctx, instr) || combine_output_conversion(ctx, instr))
|
||||
;
|
||||
apply_insert(ctx, instr);
|
||||
}
|
||||
|
Reference in New Issue
Block a user