File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
include/swift/SILOptimizer/Utils Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,8 @@ class SinkAddressProjections {
164164 // /
165165 // / getInBlockProjectionOperandValues() can be called before or after cloning.
166166 bool cloneProjections ();
167+
168+ SWIFT_DEBUG_DUMP;
167169};
168170
169171// / Clone a single basic block and any required successor edges within the same
Original file line number Diff line number Diff line change @@ -285,3 +285,16 @@ bool SinkAddressProjections::cloneProjections() {
285285 }
286286 return true ;
287287}
288+
289+ void SinkAddressProjections::dump () const {
290+ llvm::dbgs () << " Old projections: " ;
291+ for (auto *proj : oldProjections) {
292+ proj->dump ();
293+ }
294+ if (auto *np = newProjections) {
295+ llvm::dbgs () << " New projections: " ;
296+ for (auto *proj : *np) {
297+ proj->dump ();
298+ }
299+ }
300+ }
You can’t perform that action at this time.
0 commit comments