[PATCH] D137141: [SDAG] Allow scalable vectors in ComputeNumSignBits
Paul Walker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 18 11:57:36 PST 2022
paulwalker-arm added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:4385-4386
case ISD::EXTRACT_VECTOR_ELT: {
+ if (VT.isScalableVector())
+ return 1;
SDValue InVec = Op.getOperand(0);
----------------
This can never be true can it?
More relevant to the other exit paths but is `return 1;` what we want here rather than `break;`? I asked because the existing scalable vector early exits do the latter (e.g. a couple of lines down) and so I'm wondering if we're loosing information or if the other exit paths are wrong.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137141/new/
https://reviews.llvm.org/D137141
More information about the llvm-commits
mailing list