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.
2 parents b8cc62b + ae30383 commit fbe83d2Copy full SHA for fbe83d2
llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.h
@@ -180,11 +180,13 @@ struct ModuleAnalysisInfo {
180
if (RI == RegisterAliasTable[MF].end()) {
181
return Register(0);
182
}
183
- return RegisterAliasTable[MF][Reg];
+ return RI->second;
184
185
bool hasRegisterAlias(const MachineFunction *MF, Register Reg) {
186
- return RegisterAliasTable.find(MF) != RegisterAliasTable.end() &&
187
- RegisterAliasTable[MF].find(Reg) != RegisterAliasTable[MF].end();
+ auto RI = RegisterAliasTable.find(MF);
+ if (RI == RegisterAliasTable.end())
188
+ return false;
189
+ return RI->second.find(Reg) != RI->second.end();
190
191
unsigned getNextID() { return MaxID++; }
192
bool hasMBBRegister(const MachineBasicBlock &MBB) {
0 commit comments