HomePhabricator

[AMDGPU][NFC] Refactor hazard recognition IsHazardFn and IsExpiredFn

Authored by critson on Apr 29 2021, 5:01 PM.

Description

[AMDGPU][NFC] Refactor hazard recognition IsHazardFn and IsExpiredFn

Refactor IsHazardFn and IsExpiredFn to use constant references as these should not be mutating the instructions visited and the instruction can never be null.

Reviewed By: foad

Differential Revision: https://reviews.llvm.org/D101430

Details