Skip to content

Commit 8afd484

Browse files
author
chengjunp
committed
Format
1 parent a3c0c06 commit 8afd484

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/lib/Transforms/Scalar/SROA.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2977,22 +2977,22 @@ class AllocaSliceRewriter : public InstVisitor<AllocaSliceRewriter, bool> {
29772977
for (Slice &S : P) {
29782978
auto *User = cast<Instruction>(S.getUse()->getUser());
29792979
if (auto *LI = dyn_cast<LoadInst>(User)) {
2980-
// Do not handle the case if
2980+
// Do not handle the case if
29812981
// 1. There is more than one load
29822982
// 2. The load is volatile
29832983
// 3. The load does not read the entire alloca structure
29842984
// 4. The load does not meet the conditions in the helper function
29852985
if (TheLoad || !IsTypeValidForTreeStructuredMerge(LI->getType()) ||
29862986
S.beginOffset() != NewAllocaBeginOffset ||
2987-
S.endOffset() != NewAllocaEndOffset ||
2988-
LI->isVolatile())
2987+
S.endOffset() != NewAllocaEndOffset || LI->isVolatile())
29892988
return std::nullopt;
29902989
TheLoad = LI;
29912990
} else if (auto *SI = dyn_cast<StoreInst>(User)) {
2992-
// Do not handle the case if
2991+
// Do not handle the case if
29932992
// 1. The store does not meet the conditions in the helper function
29942993
// 2. The store is volatile
2995-
if (!IsTypeValidForTreeStructuredMerge(SI->getValueOperand()->getType()) ||
2994+
if (!IsTypeValidForTreeStructuredMerge(
2995+
SI->getValueOperand()->getType()) ||
29962996
SI->isVolatile())
29972997
return std::nullopt;
29982998
StoreInfos.emplace_back(SI, S.beginOffset(), S.endOffset(),

0 commit comments

Comments
 (0)