[llvm] [RISCV][GlobalISel] Legalize Scalable Vector Loads (PR #84965)
Jiahan Xie via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 25 13:19:37 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();
----------------
jiahanxie353 wrote:
It's true we can do BIT_CAST if `ScalableEltTy != FixedEltTy` && `MinNumElts * EltTy == FixedEltTy` (2 * 8 == 16 in your example).
I was wondering what if `ScalableEltTy == FixedEltTy` and `MinNumElts > 1`? In these cases, the scalable vector is the "superset" of the fixed one so they can be compatible in the sense of fitting one into another. Am I understanding it correctly?
https://github.com/llvm/llvm-project/pull/84965
More information about the llvm-commits
mailing list