[llvm] f7ccb32 - [Instrumentation] Remove an extraneous ArrayRef (NFC) (#94890)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 9 09:32:56 PDT 2024
Author: Kazu Hirata
Date: 2024-06-09T09:32:52-07:00
New Revision: f7ccb320859b9e341f74dc0cd7791a3b871eb937
URL: https://github.com/llvm/llvm-project/commit/f7ccb320859b9e341f74dc0cd7791a3b871eb937
DIFF: https://github.com/llvm/llvm-project/commit/f7ccb320859b9e341f74dc0cd7791a3b871eb937.diff
LOG: [Instrumentation] Remove an extraneous ArrayRef (NFC) (#94890)
We can implicitly convert RemainingVDs to an ArrayRef. Note that
RemainingVDs is of type SmallVector<InstrProfValueData, 24>.
Added:
Modified:
llvm/lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp b/llvm/lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
index fd0f69eca96e6..fa93f4bd63ce6 100644
--- a/llvm/lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
+++ b/llvm/lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
@@ -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);
}
More information about the llvm-commits
mailing list