[llvm] [CodeGen] Use LocationSize for MMO getSize (PR #84751)

David Green via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 12 06:36:50 PDT 2024


================
@@ -647,15 +647,15 @@ bool GIMatchTableExecutor::executeMatchTable(
 
       unsigned Size = MRI.getType(MO.getReg()).getSizeInBits();
----------------
davemgreen wrote:

Do you mean it should be a TypeSize? I think this is a bit of code likely to need to change as GISel learns about scalable vectors (with the >=/<=). I think most of GISel should assume the memory sizes cannot be unknown for these nodes.

https://github.com/llvm/llvm-project/pull/84751


More information about the llvm-commits mailing list