[PATCH] D128919: [DAG] Teach isConstOrConstSplat about SPLAT_VECTORs

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 30 08:55:08 PDT 2022


RKSimon added a comment.

I've no objections, but the experts on SVE targets need to have final say.



================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:10646
     // AllowTruncation is set.
     if (CN && (UndefElements.none() || AllowUndefs)) {
       EVT CVT = CN->getValueType(0);
----------------
Please can you add a TODO - about whether we should allow UndefElements in non-DemandedElts?


================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:10676
         BV->getConstantFPSplatNode(DemandedElts, &UndefElements);
     if (CN && (UndefElements.none() || AllowUndefs))
       return CN;
----------------
Please can you add a TODO - about whether we should allow UndefElements in non-DemandedElts?


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

https://reviews.llvm.org/D128919



More information about the llvm-commits mailing list