Skip to content

Commit 75f0f56

Browse files
[Scalar] Avoid repeated hash lookups (NFC)
1 parent 5d8e8e8 commit 75f0f56

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3296,12 +3296,12 @@ static void computeLiveInValues(DominatorTree &DT, Function &F,
32963296
assert(!Data.LiveSet[&BB].count(Kill) && "live set contains kill");
32973297
#endif
32983298

3299-
Data.LiveOut[&BB] = SetVector<Value *>();
3300-
computeLiveOutSeed(&BB, Data.LiveOut[&BB], GC);
3301-
Data.LiveIn[&BB] = Data.LiveSet[&BB];
3302-
Data.LiveIn[&BB].set_union(Data.LiveOut[&BB]);
3303-
Data.LiveIn[&BB].set_subtract(Data.KillSet[&BB]);
3304-
if (!Data.LiveIn[&BB].empty())
3299+
auto &Out = Data.LiveOut[&BB] = SetVector<Value *>();
3300+
computeLiveOutSeed(&BB, Out, GC);
3301+
auto &In = Data.LiveIn[&BB] = Data.LiveSet[&BB];
3302+
In.set_union(Out);
3303+
In.set_subtract(Data.KillSet[&BB]);
3304+
if (!In.empty())
33053305
Worklist.insert_range(predecessors(&BB));
33063306
}
33073307

0 commit comments

Comments
 (0)