GlobalISel: Use MMO helper for getting the size in bits

This commit is contained in:
Matt Arsenault 2021-06-06 11:41:48 -04:00
parent f6555b917b
commit dc98adfb44
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ LegalizerInfo::getAction(const MachineInstr &MI,
SmallVector<LegalityQuery::MemDesc, 2> MemDescrs;
for (const auto &MMO : MI.memoperands())
MemDescrs.push_back({8 * MMO->getSize() /* in bits */,
MemDescrs.push_back({MMO->getSizeInBits(),
8 * MMO->getAlign().value(), MMO->getOrdering()});
return getAction({MI.getOpcode(), Types, MemDescrs});