intel/brw: Nuke brw_inst::is_volatile()

There is no users for that function, is_volatile is only used in
brw_opt_cse.cpp is_expression() but it access the information using brw_send_inst
struct.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39104>
This commit is contained in:
José Roberto de Souza 2025-12-15 11:03:19 -08:00 committed by Marge Bot
parent 7abe0363c7
commit 6f031a98e0
2 changed files with 5 additions and 24 deletions

View file

@ -988,24 +988,6 @@ brw_inst::has_side_effects() const
}
}
bool
brw_inst::is_volatile() const
{
switch (opcode) {
case SHADER_OPCODE_MEMORY_LOAD_LOGICAL:
case SHADER_OPCODE_LOAD_REG:
case SHADER_OPCODE_LSC_FILL:
return true;
case SHADER_OPCODE_MEMORY_STORE_LOGICAL:
return as_mem()->flags & MEMORY_FLAG_VOLATILE_ACCESS;
case SHADER_OPCODE_SEND:
case SHADER_OPCODE_SEND_GATHER:
return as_send()->is_volatile;
default:
return false;
}
}
void
brw_inst::remove()
{

View file

@ -123,12 +123,6 @@ struct brw_inst : brw_exec_node {
*/
bool has_side_effects() const;
/**
* True if the instruction might be affected by side effects of other
* instructions.
*/
bool is_volatile() const;
/**
* Return whether \p arg is a control source of a virtual instruction which
* shouldn't contribute to the execution type and usual regioning
@ -256,6 +250,11 @@ struct brw_send_inst : brw_inst {
bool check_tdr:1;
bool has_side_effects:1;
/**
* True if the instruction might be affected by side effects of other
* instructions.
*/
bool is_volatile:1;
/**