[PATCH] D52935: [SelectionDAG] Add SimplifyDemandedBits to SimplifyDemandedVectorElts simplification

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 5 11:12:07 PDT 2018


RKSimon added inline comments.


================
Comment at: lib/CodeGen/SelectionDAG/TargetLowering.cpp:1234
+        unsigned NumSrcElts = SrcVT.getVectorNumElements();
+        APInt DemandedElts = APInt::getNullValue(NumSrcElts);
+        for (unsigned i = 0; i != NumSrcElts; i += Scale)
----------------
craig.topper wrote:
> Is this equivalent to APInt::getSplat(NumSrcElts, DemandedSubElts)?
Yup - never knew about that function!


Repository:
  rL LLVM

https://reviews.llvm.org/D52935





More information about the llvm-commits mailing list