Skip to content

Commit ab0d018

Browse files
committed
Add tracing to AccessMarkerElimination.
1 parent 195da33 commit ab0d018

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/SILOptimizer/Mandatory/AccessMarkerElimination.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ struct AccessMarkerElimination {
6363
: Mod(&F->getModule()), F(F), isFullElimination(isFullElimination) {}
6464

6565
SILBasicBlock::iterator eraseInst(SILInstruction *inst) {
66+
DEBUG(llvm::dbgs() << "Erasing access marker: " << *inst);
6667
removedAny = true;
6768
return inst->getParent()->erase(inst);
6869
};
@@ -183,6 +184,8 @@ bool AccessMarkerElimination::stripMarkers() {
183184
// Implement a SILModule::SILFunctionBodyCallback that strips all access
184185
// markers from newly deserialized function bodies.
185186
static void prepareSILFunctionForOptimization(ModuleDecl *, SILFunction *F) {
187+
DEBUG(llvm::dbgs() << "Stripping all markers in: " << F->getName() << "\n");
188+
186189
AccessMarkerElimination(F, /*isFullElimination=*/true).stripMarkers();
187190
}
188191

0 commit comments

Comments
 (0)