We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9afec3c commit 5a41800Copy full SHA for 5a41800
llvm/lib/Transforms/Scalar/SROA.cpp
@@ -5590,12 +5590,11 @@ bool SROA::promoteAllocas(Function &F) {
5590
if (PromotableAllocas.empty())
5591
return false;
5592
5593
- NumPromoted += PromotableAllocas.size();
5594
-
5595
if (SROASkipMem2Reg) {
5596
LLVM_DEBUG(dbgs() << "Not promoting allocas with mem2reg!\n");
5597
} else {
5598
LLVM_DEBUG(dbgs() << "Promoting allocas with mem2reg...\n");
+ NumPromoted += PromotableAllocas.size();
5599
PromoteMemToReg(PromotableAllocas.getArrayRef(), DTU->getDomTree(), AC);
5600
}
5601
0 commit comments