From d18b4388328e2782f083c8a25e4a6d440f4cda82 Mon Sep 17 00:00:00 2001 From: Natalie Vock Date: Mon, 7 Apr 2025 12:22:24 +0200 Subject: [PATCH] aco: Add RegisterDemand::operator!= Part-of: --- src/amd/compiler/aco_ir.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/amd/compiler/aco_ir.h b/src/amd/compiler/aco_ir.h index 69d961138e5..e760f174259 100644 --- a/src/amd/compiler/aco_ir.h +++ b/src/amd/compiler/aco_ir.h @@ -1047,6 +1047,11 @@ struct RegisterDemand { return a.vgpr == b.vgpr && a.sgpr == b.sgpr; } + constexpr friend bool operator!=(const RegisterDemand a, const RegisterDemand b) noexcept + { + return !(a == b); + } + constexpr bool exceeds(const RegisterDemand other) const noexcept { return vgpr > other.vgpr || sgpr > other.sgpr;