@@ -651,7 +651,7 @@ StoreInst *StackAllocationPromoter::promoteAllocationInBlock(
651
651
" store [assign] to the stack location should have been "
652
652
" transformed to a store [init]" );
653
653
LLVM_DEBUG (llvm::dbgs ()
654
- << " *** Removing redundant store: " << lastStoreInst->value );
654
+ << " *** Removing redundant store: " << * lastStoreInst->value );
655
655
++NumInstRemoved;
656
656
prepareForDeletion (lastStoreInst->value , instructionsToDelete);
657
657
}
@@ -746,7 +746,7 @@ StoreInst *StackAllocationPromoter::promoteAllocationInBlock(
746
746
" store [assign] to the stack location should have been "
747
747
" transformed to a store [init]" );
748
748
LLVM_DEBUG (llvm::dbgs () << " *** Finished promotion. Last store: "
749
- << lastStoreInst->value );
749
+ << * lastStoreInst->value );
750
750
return lastStoreInst->value ;
751
751
}
752
752
@@ -887,11 +887,11 @@ void StackAllocationPromoter::fixPhiPredBlock(BlockSetVector &phiBlocks,
887
887
SILBasicBlock *destBlock,
888
888
SILBasicBlock *predBlock) {
889
889
TermInst *ti = predBlock->getTerminator ();
890
- LLVM_DEBUG (llvm::dbgs () << " *** Fixing the terminator " << ti << " .\n " );
890
+ LLVM_DEBUG (llvm::dbgs () << " *** Fixing the terminator " << * ti << " .\n " );
891
891
892
892
LiveValues def = getEffectiveLiveOutValues (phiBlocks, predBlock);
893
893
894
- LLVM_DEBUG (llvm::dbgs () << " *** Found the definition: " << * def.copy );
894
+ LLVM_DEBUG (llvm::dbgs () << " *** Found the definition: " << def.replacement (asi) );
895
895
896
896
llvm::SmallVector<SILValue> vals;
897
897
vals.push_back (def.stored );
@@ -1748,9 +1748,8 @@ bool MemoryToRegisters::promoteSingleAllocation(AllocStackInst *alloc) {
1748
1748
1749
1749
// Remove write-only AllocStacks.
1750
1750
if (isWriteOnlyAllocation (alloc) && !shouldAddLexicalLifetime (alloc)) {
1751
- deleter.forceDeleteWithUsers (alloc);
1752
-
1753
1751
LLVM_DEBUG (llvm::dbgs () << " *** Deleting store-only AllocStack: " << *alloc);
1752
+ deleter.forceDeleteWithUsers (alloc);
1754
1753
return true ;
1755
1754
}
1756
1755
0 commit comments