Skip to content

Commit

Permalink
[Instrumentation] Remove an extraneous ArrayRef (NFC) (#94890)
Browse files Browse the repository at this point in the history
We can implicitly convert RemainingVDs to an ArrayRef.  Note that
RemainingVDs is of type SmallVector<InstrProfValueData, 24>.
  • Loading branch information
kazutakahirata authored Jun 9, 2024
1 parent de736d9 commit f7ccb32
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm/lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,7 @@ bool MemOPSizeOpt::perform(MemOp MO) {
// If all promoted, we don't need the MD.prof metadata.
if (SavedRemainCount > 0 || Version != NumVals) {
// Otherwise we need update with the un-promoted records back.
ArrayRef<InstrProfValueData> RemVDs(RemainingVDs);
annotateValueSite(*Func.getParent(), *MO.I, RemVDs, SavedRemainCount,
annotateValueSite(*Func.getParent(), *MO.I, RemainingVDs, SavedRemainCount,
IPVK_MemOPSize, NumVals);
}

Expand Down

0 comments on commit f7ccb32

Please sign in to comment.