aco: Fix the meaning of is_atomic.

Previously, is_atomic really meant "is not atomic", contrary to its name.
This commit fixes it to mean what one would think it means.

Fixes: 69bed1c918

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3618>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3618>
This commit is contained in:
Timur Kristóf
2020-01-29 13:28:58 +01:00
committed by Marge Bot
parent ba148813d7
commit e73f604b21
2 changed files with 7 additions and 7 deletions

View File

@@ -84,7 +84,7 @@ bool is_dead(const std::vector<uint16_t>& uses, Instruction *instr)
if (std::any_of(instr->definitions.begin(), instr->definitions.end(),
[&uses] (const Definition& def) { return uses[def.tempId()];}))
return false;
return instr_info.is_atomic[(int)instr->opcode];
return !instr_info.is_atomic[(int)instr->opcode];
}
std::vector<uint16_t> dead_code_analysis(Program *program) {