@@ -58,10 +58,9 @@ class StaticDataSplitter : public MachineFunctionPass {
5858 // .data.rel.ro} sections.
5959 bool inStaticDataSection (const GlobalVariable *GV, const TargetMachine &TM);
6060
61- // Returns the constant if the operand refers to a global variable or constant
61+ // Returns the constant if the operand refers to a global variable or constant
6262 // that gets lowered to static data sections. Otherwise, return nullptr.
63- const Constant *getConstant (const MachineOperand &Op,
64- const TargetMachine &TM,
63+ const Constant *getConstant (const MachineOperand &Op, const TargetMachine &TM,
6564 const MachineConstantPool *MCP);
6665
6766 // Use profiles to partition static data.
@@ -247,7 +246,8 @@ void StaticDataSplitter::annotateStaticDataWithoutProfiles(
247246 for (const auto &MBB : MF)
248247 for (const MachineInstr &I : MBB)
249248 for (const MachineOperand &Op : I.operands ())
250- if (const Constant *C = getConstant (Op, MF.getTarget (), MF.getConstantPool ()))
249+ if (const Constant *C =
250+ getConstant (Op, MF.getTarget (), MF.getConstantPool ()))
251251 SDPI->addConstantProfileCount (C, std::nullopt );
252252}
253253
0 commit comments