Skip to content

Commit d46c733

Browse files
[Scalar] Avoid repeated hash lookups (NFC) (#136264)
1 parent 4d75691 commit d46c733

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -3311,7 +3311,7 @@ static void computeLiveInValues(DominatorTree &DT, Function &F,
33113311

33123312
// Compute our new liveout set, then exit early if it hasn't changed despite
33133313
// the contribution of our successor.
3314-
SetVector<Value *> LiveOut = Data.LiveOut[BB];
3314+
SetVector<Value *> &LiveOut = Data.LiveOut[BB];
33153315
const auto OldLiveOutSize = LiveOut.size();
33163316
for (BasicBlock *Succ : successors(BB)) {
33173317
assert(Data.LiveIn.count(Succ));
@@ -3324,7 +3324,6 @@ static void computeLiveInValues(DominatorTree &DT, Function &F,
33243324
// hasn't changed.
33253325
continue;
33263326
}
3327-
Data.LiveOut[BB] = LiveOut;
33283327

33293328
// Apply the effects of this basic block
33303329
SetVector<Value *> LiveTmp = LiveOut;

0 commit comments

Comments
 (0)