[llvm] [LegalizeTypes] Handle non byte-sized elt types when splitting INSERT/EXTRACT_VECTOR_ELT (PR #93357)
    Eli Friedman via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon May 27 13:38:30 PDT 2024
    
    
  
efriedma-quic wrote:
Is the nearest byte really what we want here?  We can widen to any type we want, and on most targets, storing an `<N x i32>` is going to be a lot more efficient than storing an `<N x i24>`.
Instead of expanding immediately, should we just construct an EXTRACT_VECTOR_ELT with the promoted vector type, and legalize that?  That might allow custom legalization to kick in in certain cases.
https://github.com/llvm/llvm-project/pull/93357
    
    
More information about the llvm-commits
mailing list