File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1727,14 +1727,12 @@ MPPassManager::runOnModule(Module &M) {
1727
1727
for (unsigned Index = 0 ; Index < getNumContainedPasses (); ++Index)
1728
1728
Changed |= getContainedPass (Index)->doInitialization (M);
1729
1729
1730
- unsigned InstrCount, ModuleCount = 0 ;
1730
+ unsigned InstrCount;
1731
1731
StringMap<std::pair<unsigned , unsigned >> FunctionToInstrCount;
1732
1732
bool EmitICRemark = M.shouldEmitInstrCountChangedRemark ();
1733
1733
// Collect the initial size of the module.
1734
- if (EmitICRemark) {
1734
+ if (EmitICRemark)
1735
1735
InstrCount = initSizeRemarkInfo (M, FunctionToInstrCount);
1736
- ModuleCount = InstrCount;
1737
- }
1738
1736
1739
1737
for (unsigned Index = 0 ; Index < getNumContainedPasses (); ++Index) {
1740
1738
ModulePass *MP = getContainedPass (Index);
@@ -1752,7 +1750,7 @@ MPPassManager::runOnModule(Module &M) {
1752
1750
LocalChanged |= MP->runOnModule (M);
1753
1751
if (EmitICRemark) {
1754
1752
// Update the size of the module.
1755
- ModuleCount = M.getInstructionCount ();
1753
+ unsigned ModuleCount = M.getInstructionCount ();
1756
1754
if (ModuleCount != InstrCount) {
1757
1755
int64_t Delta = static_cast <int64_t >(ModuleCount) -
1758
1756
static_cast <int64_t >(InstrCount);
You can’t perform that action at this time.
0 commit comments