[llvm] r256716 - [PGO] Cleanup: remove reduncant calls in lowering
Xinliang David Li via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 3 11:38:51 PST 2016
Author: davidxl
Date: Sun Jan 3 13:38:51 2016
New Revision: 256716
URL: http://llvm.org/viewvc/llvm-project?rev=256716&view=rev
Log:
[PGO] Cleanup: remove reduncant calls in lowering
CoverageMapping data's section and alignment is
already set during creation. No need to call it again
during lowering.
Modified:
llvm/trunk/lib/Transforms/Instrumentation/InstrProfiling.cpp
Modified: llvm/trunk/lib/Transforms/Instrumentation/InstrProfiling.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/InstrProfiling.cpp?rev=256716&r1=256715&r2=256716&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/InstrProfiling.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/InstrProfiling.cpp Sun Jan 3 13:38:51 2016
@@ -234,8 +234,6 @@ void InstrProfiling::lowerIncrement(Inst
}
void InstrProfiling::lowerCoverageData(GlobalVariable *CoverageData) {
- CoverageData->setSection(getCoverageSection());
- CoverageData->setAlignment(8);
Constant *Init = CoverageData->getInitializer();
// We're expecting { [4 x 32], [n x { i8*, i32, i32 }], [m x i8] }
More information about the llvm-commits
mailing list