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:
@@ -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()];}))
|
||||
|
||||
Reference in New Issue
Block a user