We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9705010 commit 364e60bCopy full SHA for 364e60b
llvm/lib/Target/X86/X86DiscriminateMemOps.cpp
@@ -113,8 +113,8 @@ bool X86DiscriminateMemOps::runOnMachineFunction(MachineFunction &MF) {
113
if (BypassPrefetchInstructions && IsPrefetchOpcode(MI.getDesc().Opcode))
114
continue;
115
Location Loc = diToLocation(DI);
116
- MemOpDiscriminators[Loc] =
117
- std::max(MemOpDiscriminators[Loc], DI->getBaseDiscriminator());
+ unsigned &Disc = MemOpDiscriminators[Loc];
+ Disc = std::max(Disc, DI->getBaseDiscriminator());
118
}
119
120
0 commit comments