Skip to content

Commit d3246bd

Browse files
committed
clang-formatted
1 parent f5315f8 commit d3246bd

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

llvm/lib/Analysis/Loads.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,8 @@ bool llvm::isReadOnlyLoopWithSafeOrSpeculativeLoads(
880880
if (auto *LI = dyn_cast<LoadInst>(&I)) {
881881
if (!isDereferenceableAndAlignedInLoop(LI, L, *SE, *DT, AC, Predicates))
882882
SpeculativeLoads->push_back(LI);
883-
} else if (I.mayReadFromMemory() || I.mayWriteToMemory() || I.mayThrow()) {
883+
} else if (I.mayReadFromMemory() || I.mayWriteToMemory() ||
884+
I.mayThrow()) {
884885
return false;
885886
}
886887
}

llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1791,10 +1791,10 @@ bool LoopVectorizationLegality::isVectorizableEarlyExitLoop() {
17911791
}
17921792
// Support single Speculative load for now.
17931793
if (NonDerefLoads.size() > 1) {
1794-
reportVectorizationFailure("Loop contains more than one unbound access",
1795-
"TooManySpeculativeLoadInEarlyExitLoop",
1796-
ORE, TheLoop);
1797-
return false;
1794+
reportVectorizationFailure("Loop contains more than one unbound access",
1795+
"TooManySpeculativeLoadInEarlyExitLoop", ORE,
1796+
TheLoop);
1797+
return false;
17981798
}
17991799

18001800
[[maybe_unused]] const SCEV *SymbolicMaxBTC =

0 commit comments

Comments
 (0)