Now we promote all non-captured allocas, so we can remove NumAllocStackRemoved because we can calculate it using the other statistics.

Swift SVN r11587
This commit is contained in:
Nadav Rotem
2013-12-23 00:59:42 +00:00
parent 9888b43d33
commit bfb1c20ed5

View File

@@ -37,7 +37,6 @@
#include <queue>
using namespace swift;
STATISTIC(NumAllocStackRemoved, "Number of AllocStack promoted");
STATISTIC(NumAllocStackFound, "Number of AllocStack found");
STATISTIC(NumAllocStackCaptured, "Number of AllocStack captured");
STATISTIC(NumInstRemoved, "Number of Instructions removed");
@@ -729,7 +728,6 @@ void MemoryToRegisters::run() {
I++;
ASI->eraseFromParent();
NumInstRemoved++;
NumAllocStackRemoved++;
continue;
}
@@ -741,7 +739,6 @@ void MemoryToRegisters::run() {
I++;
ASI->eraseFromParent();
NumInstRemoved++;
NumAllocStackRemoved++;
continue;
}
@@ -758,7 +755,6 @@ void MemoryToRegisters::run() {
I++;
ASI->eraseFromParent();
NumInstRemoved++;
NumAllocStackRemoved++;
}
}
}