Skip to content

Commit 37c6b9f

Browse files
[NFC][LLVM] Mainly whitespace changes.
Also marks AliasSetTracker::size() as const.
1 parent 4349ffb commit 37c6b9f

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

llvm/include/llvm/Analysis/AliasSetTracker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class AliasSet : public ilist_node<AliasSet> {
120120
iterator begin() const { return MemoryLocs.begin(); }
121121
iterator end() const { return MemoryLocs.end(); }
122122

123-
unsigned size() { return MemoryLocs.size(); }
123+
unsigned size() const { return MemoryLocs.size(); }
124124

125125
/// Retrieve the pointer values for the memory locations in this alias set.
126126
/// The order matches that of the memory locations, but duplicate pointer

llvm/include/llvm/Analysis/VectorUtils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ class VFDatabase {
9696
VFDatabase(CallInst &CI)
9797
: M(CI.getModule()), CI(CI),
9898
ScalarToVectorMappings(VFDatabase::getMappings(CI)) {}
99+
99100
/// \defgroup VFDatabase query interface.
100101
///
101102
/// @{

llvm/lib/IR/ConstantFold.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@ Constant *llvm::ConstantFoldShuffleVectorInstruction(Constant *V1, Constant *V2,
542542
} else if (!MaskEltCount.isScalable())
543543
return ConstantVector::getSplat(MaskEltCount, Elt);
544544
}
545+
545546
// Do not iterate on scalable vector. The num of elements is unknown at
546547
// compile-time.
547548
if (isa<ScalableVectorType>(V1VTy))

llvm/lib/Target/AArch64/AArch64InstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5717,7 +5717,7 @@ int llvm::isAArch64FrameOffsetLegal(const MachineInstr &MI,
57175717
Offset = Remainder;
57185718
else {
57195719
NewOffset = NewOffset < 0 ? MinOff : MaxOff;
5720-
Offset = Offset - NewOffset * Scale;
5720+
Offset = Offset - (NewOffset * Scale);
57215721
}
57225722

57235723
if (EmittableOffset)

0 commit comments

Comments
 (0)