Skip to content

Commit e1218a0

Browse files
committed
Addressing review comments
Change-Id: Idc7b14cc785eb88552dd72947eb0df128baa7e90
1 parent f55c239 commit e1218a0

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2815,10 +2815,10 @@ bool ARMTTIImpl::useWidenGlobalStrings() const { return UseWidenGlobalStrings; }
28152815

28162816
unsigned ARMTTIImpl::getNumBytesToPadGlobalArray(unsigned Size,
28172817
Type *ArrayType) const {
2818-
if (!UseWidenGlobalArrays){
2819-
LLVM_DEBUG(dbgs() << "Padding global arrays disabled\n");
2820-
return false;
2821-
}
2818+
if (!UseWidenGlobalArrays) {
2819+
LLVM_DEBUG(dbgs() << "Padding global arrays disabled\n");
2820+
return false;
2821+
}
28222822

28232823
// Don't modify none integer array types
28242824
if (!ArrayType || !ArrayType->isArrayTy() ||

llvm/lib/Transforms/IPO/GlobalOpt.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2130,12 +2130,11 @@ static bool tryWidenGlobalArrayAndDests(Function *F, GlobalVariable *SourceVar,
21302130
// are memcpys.
21312131
for (auto *User : SourceVar->users()) {
21322132
auto *CI = dyn_cast<CallInst>(User);
2133-
if (!callInstIsMemcpy(CI))
2134-
continue;
2133+
if (!callInstIsMemcpy(CI))
2134+
continue;
21352135

21362136
if (CI->getArgOperand(1) != SourceVar)
2137-
continue;
2138-
2137+
continue;
21392138

21402139
widenDestArray(CI, NumBytesToPad, NumBytesToCopy, SourceDataArray);
21412140

0 commit comments

Comments
 (0)