[PATCH] D97811: [GlobalISel] Handle non-multiples of the base type in narrowScalarAddSub

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 21 10:20:14 PDT 2021


arsenm added inline comments.


================
Comment at: llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp:4523
+    Register DstReg =
+        MRI.createGenericVirtualRegister(MRI.getType(Src1Regs[i]));
     Register CarryOut = MRI.createGenericVirtualRegister(LLT::scalar(1));
----------------
Why do you need to getType here? It should be the same as NarrowTy?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D97811/new/

https://reviews.llvm.org/D97811



More information about the llvm-commits mailing list