Skip to content

Commit dc1e6df

Browse files
committed
[LAA] Fix some nits
1 parent bc4fc4e commit dc1e6df

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/lib/Analysis/LoopAccessAnalysis.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,13 +1249,13 @@ bool AccessAnalysis::createCheckForAccess(
12491249
// are no forked pointers; replaceSymbolicStridesSCEV in this case.
12501250
auto IsLoopInvariantOrAR =
12511251
[&SE, &TheLoop](const PointerIntPair<const SCEV *, 1, bool> &P) {
1252-
return SE->isLoopInvariant(get<0>(P), TheLoop) ||
1253-
isa<SCEVAddRecExpr>(get<0>(P));
1252+
return SE->isLoopInvariant(P.getPointer(), TheLoop) ||
1253+
isa<SCEVAddRecExpr>(P.getPointer());
12541254
};
12551255
if (RTCheckPtrs.size() == 2 && all_of(RTCheckPtrs, IsLoopInvariantOrAR)) {
1256-
LLVM_DEBUG(dbgs() << "LAA: Found forked pointer: " << *Ptr << "\n");
1257-
for (auto [Idx, Q] : enumerate(RTCheckPtrs))
1258-
LLVM_DEBUG(dbgs() << "\t(" << Idx << ") " << *Q.getPointer() << "\n");
1256+
LLVM_DEBUG(dbgs() << "LAA: Found forked pointer: " << *Ptr << "\n";
1257+
for (const auto &[Idx, Q] : enumerate(RTCheckPtrs)) dbgs()
1258+
<< "\t(" << Idx << ") " << *Q.getPointer() << "\n");
12591259
} else {
12601260
RTCheckPtrs = {{replaceSymbolicStrideSCEV(PSE, StridesMap, Ptr), false}};
12611261
}

0 commit comments

Comments
 (0)