[PATCH] D125950: [LegalizeTypes][VP] Add widen and split support for VP_TRUNCATE

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 24 12:29:03 PDT 2022


craig.topper added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp:2912
     ReplaceValueWith(SDValue(N, 1), Ch);
+  } else if (N->getOpcode() == ISD::VP_TRUNCATE) {
+    SDValue MaskLo, MaskHi, EVLLo, EVLHi;
----------------
Check the operand count instead of the opcode? Then assert isVPOpcode like the widening code.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D125950



More information about the llvm-commits mailing list