[PATCH] D127595: [DAG] visitINSERT_VECTOR_ELT - attempt to reconstruct BUILD_VECTOR before other fold interfere
Amaury SECHET via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 12 15:39:53 PDT 2022
deadalnix added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:19376
// do this only if indices are both constants and Idx1 < Idx0.
if (InVec.getOpcode() == ISD::INSERT_VECTOR_ELT && InVec.hasOneUse()
&& isa<ConstantSDNode>(InVec.getOperand(2))) {
----------------
RKSimon wrote:
> @deadalnix We canonicalize to ascending order here
I see. Great.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127595/new/
https://reviews.llvm.org/D127595
More information about the llvm-commits
mailing list