[PATCH] D51696: [SelectionDAG] enhance vector demanded elements to look at a vector select condition operand

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 5 12:54:46 PDT 2018


RKSimon added inline comments.


================
Comment at: lib/CodeGen/SelectionDAG/TargetLowering.cpp:1539
+    // TODO - add support for constant vselect masks (see IR version of this).
+    APInt UnusedUndef, UnusedZero;
+    if (SimplifyDemandedVectorElts(Op.getOperand(0), DemandedElts, UnusedUndef,
----------------
Can we use UnusedZero to alter the LHS/RHS DemandedElts ?


https://reviews.llvm.org/D51696





More information about the llvm-commits mailing list