[PATCH] D128919: [DAG] Teach isConstOrConstSplat about SPLAT_VECTORs
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 8 03:17:48 PST 2022
dmgreen added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:10616
+ EVT VT = N.getValueType();
+ APInt DemandedElts = VT.isVector()
+ ? APInt::getAllOnes(VT.getVectorMinNumElements())
----------------
paulwalker-arm wrote:
> Based on @reames's demanded elts patches I think this should be `isFixedLengthVector()`? because we now use a 1bit APInt to represent demanding all elements of a scalable vector.
Yes. Those are already in the version I am about to commit. I was just running ninja check-all first and it was taking a long time for some reason.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128919/new/
https://reviews.llvm.org/D128919
More information about the llvm-commits
mailing list