[PATCH] D158201: [DAG] Fold insert_subvector undef, (extract_subvector X, 0), 0 with non-matching types
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 18 07:41:21 PDT 2023
RKSimon added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:25610
+ if (auto *N2C = dyn_cast<ConstantSDNode>(N2);
+ N2C && N2C->isZero() &&
+ VT.isScalableVector() == SrcVT.isScalableVector()) {
----------------
isNullConstant(N2)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158201/new/
https://reviews.llvm.org/D158201
More information about the llvm-commits
mailing list