[PATCH] D98969: [RISCV] Further optimize BUILD_VECTORs with repeated elements
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 22 11:42:28 PDT 2021
craig.topper accepted this revision.
craig.topper added a comment.
This revision is now accepted and ready to land.
LGTM other than that one comment.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:1279
+ continue;
+ if (ValueCounts[V] == 1)
+ Vec = DAG.getNode(ISD::INSERT_VECTOR_ELT, DL, VT, Vec, V,
----------------
Put this block in curly braces for consistency with the else?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98969/new/
https://reviews.llvm.org/D98969
More information about the llvm-commits
mailing list