[llvm] [AArch64][GlobalISel] Add support for widening vector store elements to s8. (PR #121170)

Amara Emerson via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 27 10:19:01 PST 2024


================
@@ -3022,8 +3022,18 @@ LegalizerHelper::widenScalar(MachineInstr &MI, unsigned TypeIdx, LLT WideTy) {
       return UnableToLegalize;
 
     LLT Ty = MRI.getType(MI.getOperand(0).getReg());
-    if (!Ty.isScalar())
-      return UnableToLegalize;
+    if (!Ty.isScalar()) {
----------------
aemerson wrote:

I can put an assert, but it shouldn't be valid to widenScalarOrElt on a pointer vector?

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


More information about the llvm-commits mailing list