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;