[llvm] d46c733 - [Scalar] Avoid repeated hash lookups (NFC) (#136264)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 19 09:39:42 PDT 2025
Author: Kazu Hirata
Date: 2025-04-19T09:39:39-07:00
New Revision: d46c7334e86040a71b4002786fe021ebf6946694
URL: https://github.com/llvm/llvm-project/commit/d46c7334e86040a71b4002786fe021ebf6946694
DIFF: https://github.com/llvm/llvm-project/commit/d46c7334e86040a71b4002786fe021ebf6946694.diff
LOG: [Scalar] Avoid repeated hash lookups (NFC) (#136264)
Added:
Modified:
llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
index 7eee0283e20e6..8005be8d4ca05 100644
--- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
+++ b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
@@ -3311,7 +3311,7 @@ static void computeLiveInValues(DominatorTree &DT, Function &F,
// Compute our new liveout set, then exit early if it hasn't changed despite
// the contribution of our successor.
- SetVector<Value *> LiveOut = Data.LiveOut[BB];
+ SetVector<Value *> &LiveOut = Data.LiveOut[BB];
const auto OldLiveOutSize = LiveOut.size();
for (BasicBlock *Succ : successors(BB)) {
assert(Data.LiveIn.count(Succ));
@@ -3324,7 +3324,6 @@ static void computeLiveInValues(DominatorTree &DT, Function &F,
// hasn't changed.
continue;
}
- Data.LiveOut[BB] = LiveOut;
// Apply the effects of this basic block
SetVector<Value *> LiveTmp = LiveOut;
More information about the llvm-commits
mailing list