Fix uninitialized variable warnings. NFCI.

This commit is contained in:
Simon Pilgrim 2019-11-03 11:23:53 +00:00
parent e81b201d1b
commit 604cbd6b12
2 changed files with 7 additions and 3 deletions

View File

@ -1009,7 +1009,7 @@ protected:
/// initPolicy -> initialize(DAG) -> registerRoots -> pickNode ...
class PostGenericScheduler : public GenericSchedulerBase {
protected:
ScheduleDAGMI *DAG;
ScheduleDAGMI *DAG = nullptr;
SchedBoundary Top;
SmallVector<SUnit*, 8> BotRoots;

View File

@ -37,8 +37,12 @@ class TargetSchedModel {
const TargetInstrInfo *TII = nullptr;
SmallVector<unsigned, 16> ResourceFactors;
unsigned MicroOpFactor; // Multiply to normalize microops to resource units.
unsigned ResourceLCM; // Resource units per cycle. Latency normalization factor.
// Multiply to normalize microops to resource units.
unsigned MicroOpFactor = 0;
// Resource units per cycle. Latency normalization factor.
unsigned ResourceLCM = 0;
unsigned computeInstrLatency(const MCSchedClassDesc &SCDesc) const;