mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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:
parent
7abe0363c7
commit
6f031a98e0
2 changed files with 5 additions and 24 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue