[PATCH] D102766: [SelectionDAG] Implement PromoteIntRes_INSERT_SUBVECTOR

Peter Waller via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 17 13:23:33 PDT 2021


peterwaller-arm added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp:4731
+  SDValue ScaledIdx = DAG.getVScale(
+      dl, StackPtrVT, IdxAPInt.sextOrSelf(StackPtrVT.getSizeInBits()));
+
----------------
Thinking: If IdxAPInt is zero, you could set ScaledIdx = Idx. Alternatively, just update Idx if non-zero. This would get rid of some `rdvl ..., #0`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102766



More information about the llvm-commits mailing list