From ee0ee282b9015ffdd88c9250fd5a25098b9b04c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Tue, 1 Apr 2025 11:46:39 +0200 Subject: [PATCH] aco: simplify Operand() constructor Part-of: --- src/amd/compiler/aco_ir.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/amd/compiler/aco_ir.h b/src/amd/compiler/aco_ir.h index b7e5428a4c8..3e8396eb338 100644 --- a/src/amd/compiler/aco_ir.h +++ b/src/amd/compiler/aco_ir.h @@ -460,12 +460,11 @@ static constexpr PhysReg scc{253}; */ class Operand final { public: - constexpr Operand() - : reg_(PhysReg{128}), isTemp_(false), isFixed_(true), isPrecolored_(false), - isConstant_(false), isKill_(false), isUndef_(true), isFirstKill_(false), - isLateKill_(false), isClobbered_(false), isCopyKill_(false), is16bit_(false), - is24bit_(false), signext(false), constSize(0) - {} + constexpr Operand() noexcept + { + isUndef_ = true; + setFixed(PhysReg{128}); + } explicit Operand(Temp r) noexcept {