[llvm] baf17e2 - [NFC] Move statictic increment out of helper
Max Kazantsev via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 9 02:32:58 PDT 2021
Author: Max Kazantsev
Date: 2021-04-09T16:32:35+07:00
New Revision: baf17e2cc97e9832f0fe3c097a8ac8f682d7d7b2
URL: https://github.com/llvm/llvm-project/commit/baf17e2cc97e9832f0fe3c097a8ac8f682d7d7b2
DIFF: https://github.com/llvm/llvm-project/commit/baf17e2cc97e9832f0fe3c097a8ac8f682d7d7b2.diff
LOG: [NFC] Move statictic increment out of helper
Added:
Modified:
llvm/lib/Transforms/Scalar/GVN.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/GVN.cpp b/llvm/lib/Transforms/Scalar/GVN.cpp
index 9fa9676adc72..846a5cdb33d1 100644
--- a/llvm/lib/Transforms/Scalar/GVN.cpp
+++ b/llvm/lib/Transforms/Scalar/GVN.cpp
@@ -1204,7 +1204,6 @@ void GVN::eliminatePartiallyRedundantLoad(
return OptimizationRemark(DEBUG_TYPE, "LoadPRE", Load)
<< "load eliminated by PRE";
});
- ++NumPRELoad;
}
bool GVN::PerformLoadPRE(LoadInst *Load, AvailValInBlkVect &ValuesPerBlock,
@@ -1444,6 +1443,7 @@ bool GVN::PerformLoadPRE(LoadInst *Load, AvailValInBlkVect &ValuesPerBlock,
}
eliminatePartiallyRedundantLoad(Load, ValuesPerBlock, PredLoads);
+ ++NumPRELoad;
return true;
}
More information about the llvm-commits
mailing list