Skip to content

Commit f23bbf6

Browse files
[X86] Avoid repeated hash lookups (NFC) (#131069)
1 parent f4ee62c commit f23bbf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/X86/X86PreTileConfig.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ bool X86PreTileConfig::runOnMachineFunction(MachineFunction &MF) {
327327
MachineBasicBlock *MBB = CfgLiveInBBs.pop_back_val();
328328
for (auto *Pred : MBB->predecessors()) {
329329
auto &Info = BBVisitedInfo[Pred];
330-
if (BBVisitedInfo[Pred].LastCall) {
330+
if (Info.LastCall) {
331331
CfgNeedInsert.insert(Info.LastCall);
332332
} else if (!Info.NeedTileCfgLiveIn) {
333333
Info.NeedTileCfgLiveIn = true;

0 commit comments

Comments
 (0)