@@ -230,16 +230,10 @@ bool PEI::runOnMachineFunction(MachineFunction &MF) {
230230 // with stack arguments.
231231 TFI->spillFPBP (MF);
232232
233- LLVM_DEBUG (llvm::dbgs () << " Before calculateCallFrameInfo \n " );
234- LLVM_DEBUG (MF.dump ());
235-
236233 // Calculate the MaxCallFrameSize value for the function's frame
237234 // information. Also eliminates call frame pseudo instructions.
238235 calculateCallFrameInfo (MF);
239236
240- LLVM_DEBUG (llvm::dbgs () << " Before calculateSaveRestoreBlocks \n " );
241- LLVM_DEBUG (MF.dump ());
242-
243237 // Determine placement of CSR spill/restore code and prolog/epilog code:
244238 // place all spills in the entry block, all restores in return blocks.
245239 calculateSaveRestoreBlocks (MF);
@@ -249,29 +243,17 @@ bool PEI::runOnMachineFunction(MachineFunction &MF) {
249243 for (MachineBasicBlock *SaveBlock : SaveBlocks)
250244 stashEntryDbgValues (*SaveBlock, EntryDbgValues);
251245
252- LLVM_DEBUG (llvm::dbgs () << " Before spillCalleeSavedRegs \n " );
253- LLVM_DEBUG (MF.dump ());
254-
255246 // Handle CSR spilling and restoring, for targets that need it.
256247 if (MF.getTarget ().usesPhysRegsForValues ())
257248 spillCalleeSavedRegs (MF);
258249
259- LLVM_DEBUG (llvm::dbgs () << " Before processFunctionBeforeFrameFinalized \n " );
260- LLVM_DEBUG (MF.dump ());
261-
262250 // Allow the target machine to make final modifications to the function
263251 // before the frame layout is finalized.
264252 TFI->processFunctionBeforeFrameFinalized (MF, RS);
265253
266- LLVM_DEBUG (llvm::dbgs () << " Before calculateFrameObjectOffsets \n " );
267- LLVM_DEBUG (MF.dump ());
268-
269254 // Calculate actual frame offsets for all abstract stack objects...
270255 calculateFrameObjectOffsets (MF);
271256
272- LLVM_DEBUG (llvm::dbgs () << " Before insertPrologEpilogCode \n " );
273- LLVM_DEBUG (MF.dump ());
274-
275257 // Add prolog and epilog code to the function. This function is required
276258 // to align the stack frame as necessary for any stack variables or
277259 // called functions. Because of this, calculateCalleeSavedRegisters()
@@ -284,17 +266,10 @@ bool PEI::runOnMachineFunction(MachineFunction &MF) {
284266 for (auto &I : EntryDbgValues)
285267 I.first ->insert (I.first ->begin (), I.second .begin (), I.second .end ());
286268
287- LLVM_DEBUG (
288- llvm::dbgs () << " Before processFunctionBeforeFrameIndicesReplaced \n " );
289- LLVM_DEBUG (MF.dump ());
290-
291269 // Allow the target machine to make final modifications to the function
292270 // before the frame layout is finalized.
293271 TFI->processFunctionBeforeFrameIndicesReplaced (MF, RS);
294272
295- LLVM_DEBUG (llvm::dbgs () << " Before frame index resolution \n " );
296- LLVM_DEBUG (MF.dump ());
297-
298273 // Replace all MO_FrameIndex operands with physical register references
299274 // and actual offsets.
300275 if (TFI->needsFrameIndexResolution (MF)) {
@@ -309,9 +284,6 @@ bool PEI::runOnMachineFunction(MachineFunction &MF) {
309284 replaceFrameIndices (MF);
310285 }
311286
312- LLVM_DEBUG (llvm::dbgs () << " After frame index resolution \n " );
313- LLVM_DEBUG (MF.dump ());
314-
315287 // If register scavenging is needed, as we've enabled doing it as a
316288 // post-pass, scavenge the virtual registers that frame index elimination
317289 // inserted.
0 commit comments