[PATCH] D104250: [TLI] SimplifyDemandedVectorElts(): handle SCALAR_TO_VECTOR(EXTRACT_VECTOR_ELT(?, 0))
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 14 13:21:03 PDT 2021
RKSimon added a comment.
Thanks for looking into this!
================
Comment at: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:2437
+ auto *CIdx = dyn_cast<ConstantSDNode>(Idx);
+ if (CIdx && CIdx->isNullValue()) {
+ APInt SrcDemandedElts = APInt::getOneBitSet(NumSrcElts, 0);
----------------
isNullConstant ?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104250/new/
https://reviews.llvm.org/D104250
More information about the llvm-commits
mailing list