@@ -318,11 +318,8 @@ class LegacyLegalizerInfo {
318
318
const unsigned AddressSpace,
319
319
const SizeAndActionsVec &SizeAndActions) {
320
320
const unsigned OpcodeIdx = Opcode - FirstOp;
321
- if (AddrSpace2PointerActions[OpcodeIdx].find (AddressSpace) ==
322
- AddrSpace2PointerActions[OpcodeIdx].end ())
323
- AddrSpace2PointerActions[OpcodeIdx][AddressSpace] = {{}};
324
321
SmallVector<SizeAndActionsVec, 1 > &Actions =
325
- AddrSpace2PointerActions[OpcodeIdx]. find ( AddressSpace)-> second ;
322
+ AddrSpace2PointerActions[OpcodeIdx][ AddressSpace] ;
326
323
setActions (TypeIndex, Actions, SizeAndActions);
327
324
}
328
325
@@ -347,11 +344,8 @@ class LegacyLegalizerInfo {
347
344
const unsigned ElementSize,
348
345
const SizeAndActionsVec &SizeAndActions) {
349
346
const unsigned OpcodeIdx = Opcode - FirstOp;
350
- if (NumElements2Actions[OpcodeIdx].find (ElementSize) ==
351
- NumElements2Actions[OpcodeIdx].end ())
352
- NumElements2Actions[OpcodeIdx][ElementSize] = {{}};
353
347
SmallVector<SizeAndActionsVec, 1 > &Actions =
354
- NumElements2Actions[OpcodeIdx]. find ( ElementSize)-> second ;
348
+ NumElements2Actions[OpcodeIdx][ ElementSize] ;
355
349
setActions (TypeIndex, Actions, SizeAndActions);
356
350
}
357
351
0 commit comments