aco/ir: return true in hasRegClass for Operand(reg, rc)

Makes isOfType() usable after lower_to_hw_instr.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21402>
This commit is contained in:
Georg Lehmann 2023-06-07 10:01:06 +02:00 committed by Marge Bot
parent a62a22c922
commit 0f023d90c0

View file

@ -748,7 +748,7 @@ public:
constexpr uint32_t tempId() const noexcept { return data_.temp.id(); }
constexpr bool hasRegClass() const noexcept { return isTemp() || isUndefined(); }
constexpr bool hasRegClass() const noexcept { return !isConstant(); }
constexpr RegClass regClass() const noexcept { return data_.temp.regClass(); }