[PGO] Cleanup: remove reduncant calls in lowering
authorXinliang David Li <davidxl@google.com>
Sun, 3 Jan 2016 19:38:51 +0000 (19:38 +0000)
committerXinliang David Li <davidxl@google.com>
Sun, 3 Jan 2016 19:38:51 +0000 (19:38 +0000)
CoverageMapping data's section and alignment is
already set during creation. No need to call it again
during lowering.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256716 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Instrumentation/InstrProfiling.cpp

index 7a51fda38ed892caef793a2cd0518007b197d9d2..51ff95d9a74ca3f9d90e6151f889a444c05f4f79 100644 (file)
@@ -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] }