aco: use format-check methods

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8595>
This commit is contained in:
Rhys Perry
2021-01-20 15:27:16 +00:00
committed by Marge Bot
parent 70dbcfa1c9
commit 1d245cd18b
20 changed files with 137 additions and 159 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ void process_block(dce_ctx& ctx, Block& block)
bool is_dead(const std::vector<uint16_t>& uses, Instruction *instr)
{
if (instr->definitions.empty() || instr->format == Format::PSEUDO_BRANCH)
if (instr->definitions.empty() || instr->isBranch())
return false;
if (std::any_of(instr->definitions.begin(), instr->definitions.end(),
[&uses] (const Definition& def) { return uses[def.tempId()];}))