Mesa (main): aco: Remove useless sub-expr.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Nov 9 21:21:40 UTC 2021
Module: Mesa
Branch: main
Commit: 5db098c98bd7d313b909041661fdb67bfc56362c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5db098c98bd7d313b909041661fdb67bfc56362c
Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date: Mon Oct 25 23:46:12 2021 +0200
aco: Remove useless sub-expr.
../src/amd/compiler/aco_instruction_selection.cpp:11915:83: error: expression result unused [-Werror,-Wunused-value]
bld.vop2(aco_opcode::v_lshrrev_b32, fetch_index_def, div_info, instance_id).instr;
Reviewed-by: Rhys Perry <pendingchaos02 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13164>
---
src/amd/compiler/aco_instruction_selection.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp
index 54575986aaf..baa21d66ab6 100644
--- a/src/amd/compiler/aco_instruction_selection.cpp
+++ b/src/amd/compiler/aco_instruction_selection.cpp
@@ -11912,7 +11912,7 @@ calc_nontrivial_instance_id(Builder& bld, const struct radv_shader_args* args, u
div_info = Operand(tmp_vgpr1, v1);
}
- bld.vop2(aco_opcode::v_lshrrev_b32, fetch_index_def, div_info, instance_id).instr;
+ bld.vop2(aco_opcode::v_lshrrev_b32, fetch_index_def, div_info, instance_id);
Instruction* instr;
if (bld.program->chip_class >= GFX9)
More information about the mesa-commit
mailing list