diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2022-02-05 18:04:23 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2022-02-05 18:05:05 +0000 |
| commit | ecbca9f5fb7d7613d2b94982c4825eb0d33d6842 (patch) | |
| tree | 3a4038f3b7bafaeade9fd6146ea8021237616657 /llvm/lib/CodeGen/EarlyIfConversion.cpp | |
| parent | 6f8fc217eaa12bf657be1c6468ed9938d10168b3 (diff) | |
Diffstat (limited to 'llvm/lib/CodeGen/EarlyIfConversion.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/EarlyIfConversion.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/EarlyIfConversion.cpp b/llvm/lib/CodeGen/EarlyIfConversion.cpp index 0b5469b02637..6a0da4dad3c1 100644 --- a/llvm/lib/CodeGen/EarlyIfConversion.cpp +++ b/llvm/lib/CodeGen/EarlyIfConversion.cpp @@ -111,12 +111,11 @@ public: /// Information about each phi in the Tail block. struct PHIInfo { MachineInstr *PHI; - unsigned TReg, FReg; + unsigned TReg = 0, FReg = 0; // Latencies from Cond+Branch, TReg, and FReg to DstReg. - int CondCycles, TCycles, FCycles; + int CondCycles = 0, TCycles = 0, FCycles = 0; - PHIInfo(MachineInstr *phi) - : PHI(phi), TReg(0), FReg(0), CondCycles(0), TCycles(0), FCycles(0) {} + PHIInfo(MachineInstr *phi) : PHI(phi) {} }; SmallVector<PHIInfo, 8> PHIs; |
