================
@@ -4142,9 +4142,40 @@ LegalizerHelper::LegalizeResult 
LegalizerHelper::lowerStore(GStore &StoreMI) {
   }
 
   if (MemTy.isVector()) {
-    // TODO: Handle vector trunc stores
-    if (MemTy != SrcTy)
+    LLT MemScalarTy = MemTy.getElementType();
+    if (MemTy != SrcTy) {
----------------
arsenm wrote:

If the DAG has scalarizeVectorStore, move this to a similarly named helper?

https://github.com/llvm/llvm-project/pull/121169
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to