Skip to content

Commit 45541a4

Browse files
committed
Style update
1 parent 18ea570 commit 45541a4

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,9 @@ bool LoopVectorizationLegality::canFoldTailByMasking() const {
19291929
// that not every instruction executes on the last iteration. This will
19301930
// require a lane mask which varies through the vector loop body. (TODO)
19311931
if (TheLoop->getExitingBlock() != TheLoop->getLoopLatch()) {
1932-
LLVM_DEBUG(dbgs() << "LV: Cannot fold tail by masking. Requires a singe latch exit\n");
1932+
LLVM_DEBUG(
1933+
dbgs()
1934+
<< "LV: Cannot fold tail by masking. Requires a singe latch exit\n");
19331935
return false;
19341936
}
19351937
LLVM_DEBUG(dbgs() << "LV: can fold tail by masking.\n");

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4033,7 +4033,8 @@ LoopVectorizationCostModel::computeMaxVF(ElementCount UserVF, unsigned UserIC) {
40334033
return Rem->isZero();
40344034
};
40354035

4036-
bool HasSingleLatchExit = TheLoop->getExitingBlock() == TheLoop->getLoopLatch();
4036+
bool HasSingleLatchExit =
4037+
TheLoop->getExitingBlock() == TheLoop->getLoopLatch();
40374038
if (HasSingleLatchExit && MaxPowerOf2RuntimeVF > 0u) {
40384039
assert((UserVF.isNonZero() || isPowerOf2_32(*MaxPowerOf2RuntimeVF)) &&
40394040
"MaxFixedVF must be a power of 2");
@@ -4045,7 +4046,8 @@ LoopVectorizationCostModel::computeMaxVF(ElementCount UserVF, unsigned UserIC) {
40454046
}
40464047

40474048
auto ExpectedTC = getSmallBestKnownTC(PSE, TheLoop);
4048-
if (HasSingleLatchExit && ExpectedTC && ExpectedTC <= TTI.getMinTripCountTailFoldingThreshold()) {
4049+
if (HasSingleLatchExit && ExpectedTC &&
4050+
ExpectedTC <= TTI.getMinTripCountTailFoldingThreshold()) {
40494051
if (MaxPowerOf2RuntimeVF > 0u) {
40504052
// If we have a low-trip-count, and the fixed-width VF is known to divide
40514053
// the trip count but the scalable factor does not, use the fixed-width

0 commit comments

Comments
 (0)