Skip to content

Commit

Permalink
[NFC][LLVM] Mainly whitespace changes.
Browse files Browse the repository at this point in the history
Also marks AliasSetTracker::size() as const.
  • Loading branch information
paulwalker-arm committed May 17, 2024
1 parent 4349ffb commit 37c6b9f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion llvm/include/llvm/Analysis/AliasSetTracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class AliasSet : public ilist_node<AliasSet> {
iterator begin() const { return MemoryLocs.begin(); }
iterator end() const { return MemoryLocs.end(); }

unsigned size() { return MemoryLocs.size(); }
unsigned size() const { return MemoryLocs.size(); }

/// Retrieve the pointer values for the memory locations in this alias set.
/// The order matches that of the memory locations, but duplicate pointer
Expand Down
1 change: 1 addition & 0 deletions llvm/include/llvm/Analysis/VectorUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ class VFDatabase {
VFDatabase(CallInst &CI)
: M(CI.getModule()), CI(CI),
ScalarToVectorMappings(VFDatabase::getMappings(CI)) {}

/// \defgroup VFDatabase query interface.
///
/// @{
Expand Down
1 change: 1 addition & 0 deletions llvm/lib/IR/ConstantFold.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ Constant *llvm::ConstantFoldShuffleVectorInstruction(Constant *V1, Constant *V2,
} else if (!MaskEltCount.isScalable())
return ConstantVector::getSplat(MaskEltCount, Elt);
}

// Do not iterate on scalable vector. The num of elements is unknown at
// compile-time.
if (isa<ScalableVectorType>(V1VTy))
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5717,7 +5717,7 @@ int llvm::isAArch64FrameOffsetLegal(const MachineInstr &MI,
Offset = Remainder;
else {
NewOffset = NewOffset < 0 ? MinOff : MaxOff;
Offset = Offset - NewOffset * Scale;
Offset = Offset - (NewOffset * Scale);
}

if (EmittableOffset)
Expand Down

0 comments on commit 37c6b9f

Please sign in to comment.