Revert "GlobalISel: Use MMO helper for getting the size in bits"

This reverts commit dc98adfb44.

This should still be done, but this is currently causing some commit
ordering issues.
This commit is contained in:
Matt Arsenault 2021-06-08 18:23:34 -04:00
parent 8d21d54725
commit 49fa6abf74
1 changed files with 2 additions and 1 deletions

View File

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