aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-01-03 19:38:51 +0000
committerXinliang David Li <davidxl@google.com>2016-01-03 19:38:51 +0000
commit76c3f38774056cdbdce94701c962df8bdf9618ee (patch)
treead1d19b3ec2e414e404b6d3679c866aebe606508 /llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
parent5205ca0c703e757a7b86a8577a12b7c40a791df7 (diff)
downloadllvm-76c3f38774056cdbdce94701c962df8bdf9618ee.zip
llvm-76c3f38774056cdbdce94701c962df8bdf9618ee.tar.gz
llvm-76c3f38774056cdbdce94701c962df8bdf9618ee.tar.bz2
[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. llvm-svn: 256716
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
index 7a51fda..51ff95d 100644
--- a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
@@ -234,8 +234,6 @@ void InstrProfiling::lowerIncrement(InstrProfIncrementInst *Inc) {
}
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] }