[llvm] [RISCV][GlobalISel] Legalize Scalable Vector Loads (PR #84965)

Michael Maitland via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 25 11:26:06 PDT 2024


================
@@ -220,7 +220,8 @@ struct TypePairAndMemDesc {
            Align >= Other.Align &&
            // FIXME: This perhaps should be stricter, but the current legality
            // rules are written only considering the size.
-           MemTy.getSizeInBits() == Other.MemTy.getSizeInBits();
----------------
michaelmaitland wrote:

If you have an s8 its type size in bits will be `(ElementCount::Fixed(1), 8 bits)` If you have an nxv2s8 its type size in bits will be `(ElementCount::Sclable(2), 8)`. `(ElementCount::Fixed(1), 8) != (ElementCount::Sclable(2), 8)`

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


More information about the llvm-commits mailing list