@@ -812,33 +812,33 @@ static SILValue tryRewriteToPartialApplyStack(
812
812
if (!lookThroughMarkDependenceChainForValue (mark, newPA) ||
813
813
mark->getBase () != stack) {
814
814
LLVM_DEBUG (llvm::dbgs () << " -- had unexpected mark_dependence use\n " ;
815
- use->getUser ()->print (llvm::dbgs ());
816
- llvm::dbgs () << " \n " );
815
+ use->getUser ()->print (llvm::dbgs ()); llvm::dbgs () << " \n " );
817
816
initialization = nullptr ;
818
817
break ;
819
818
}
820
819
markDep = mark;
821
820
822
821
continue ;
823
822
}
824
-
823
+
825
824
// If we saw more than just the initialization, this isn't a pattern we
826
825
// recognize.
827
826
if (initialization) {
828
- LLVM_DEBUG (llvm::dbgs () << " -- had non-initialization, non-partial-apply use \n " ;
829
- use-> getUser ()-> print ( llvm::dbgs ()) ;
830
- llvm::dbgs () << " \n " );
831
-
827
+ LLVM_DEBUG (llvm::dbgs ()
828
+ << " -- had non-initialization, non-partial-apply use \n " ;
829
+ use-> getUser ()-> print ( llvm::dbgs ()); llvm::dbgs () << " \n " );
830
+
832
831
initialization = nullptr ;
833
832
break ;
834
833
}
835
834
if (auto possibleInit = dyn_cast<CopyAddrInst>(use->getUser ())) {
836
835
// Should copy the source and initialize the destination.
837
- if (possibleInit->isTakeOfSrc ()
838
- || !possibleInit->isInitializationOfDest ()) {
839
- LLVM_DEBUG (llvm::dbgs () << " -- had non-initialization, non-partial-apply use\n " ;
840
- use->getUser ()->print (llvm::dbgs ());
841
- llvm::dbgs () << " \n " );
836
+ if (possibleInit->isTakeOfSrc () ||
837
+ !possibleInit->isInitializationOfDest ()) {
838
+ LLVM_DEBUG (
839
+ llvm::dbgs ()
840
+ << " -- had non-initialization, non-partial-apply use\n " ;
841
+ use->getUser ()->print (llvm::dbgs ()); llvm::dbgs () << " \n " );
842
842
843
843
break ;
844
844
}
@@ -887,14 +887,15 @@ static SILValue tryRewriteToPartialApplyStack(
887
887
LLVM_DEBUG (llvm::dbgs () << " looking at use\n " ;
888
888
origUse->getUser ()->printInContext (llvm::dbgs ());
889
889
llvm::dbgs () << " \n " );
890
-
890
+
891
891
// If the user doesn't write to memory, then it's harmless.
892
892
if (!origUse->getUser ()->mayWriteToMemory ()) {
893
893
return true ;
894
894
}
895
895
if (closureLiveness.isWithinBoundary (origUse->getUser ())) {
896
896
origIsUnmodifiedDuringClosureLifetime = false ;
897
- LLVM_DEBUG (llvm::dbgs () << " -- original has other possibly writing use during closure lifetime\n " ;
897
+ LLVM_DEBUG (llvm::dbgs () << " -- original has other possibly writing "
898
+ " use during closure lifetime\n " ;
898
899
origUse->getUser ()->print (llvm::dbgs ());
899
900
llvm::dbgs () << " \n " );
900
901
return false ;
0 commit comments