Skip to content

Commit

Permalink
Revert "GlobalISel: Use MMO helper for getting the size in bits"
Browse files Browse the repository at this point in the history
This reverts commit dc98adf.

This should still be done, but this is currently causing some commit
ordering issues.
  • Loading branch information
arsenm committed Jun 29, 2021
1 parent 8d21d54 commit 49fa6ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llvm/lib/CodeGen/GlobalISel/LegalizerInfo.cpp
Expand Up @@ -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});
Expand Down

0 comments on commit 49fa6ab

Please sign in to comment.