@@ -37,21 +37,20 @@ STATISTIC(NumBBsPadded, "Number of basic blocks padded");
37
37
namespace {
38
38
struct VisitedBBInfo {
39
39
// HasReturn - Whether the BB contains a return instruction
40
- bool HasReturn;
40
+ bool HasReturn = false ;
41
41
42
42
// Cycles - Number of cycles until return if HasReturn is true, otherwise
43
43
// number of cycles until end of the BB
44
- unsigned int Cycles;
44
+ unsigned int Cycles = 0 ;
45
45
46
- VisitedBBInfo () : HasReturn( false ), Cycles( 0 ) {}
46
+ VisitedBBInfo () = default ;
47
47
VisitedBBInfo (bool HasReturn, unsigned int Cycles)
48
48
: HasReturn(HasReturn), Cycles(Cycles) {}
49
49
};
50
50
51
51
struct PadShortFunc : public MachineFunctionPass {
52
52
static char ID;
53
- PadShortFunc () : MachineFunctionPass(ID)
54
- , Threshold(4 ) {}
53
+ PadShortFunc () : MachineFunctionPass(ID) {}
55
54
56
55
bool runOnMachineFunction (MachineFunction &MF) override ;
57
56
@@ -82,7 +81,7 @@ namespace {
82
81
MachineBasicBlock::iterator &MBBI,
83
82
unsigned int NOOPsToAdd);
84
83
85
- const unsigned int Threshold;
84
+ const unsigned int Threshold = 4 ;
86
85
87
86
// ReturnBBs - Maps basic blocks that return to the minimum number of
88
87
// cycles until the return, starting from the entry block.
0 commit comments