[PATCH] D116277: [RISCV] Use vmv.x.s to build one element splat vector.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 27 11:11:04 PST 2021
craig.topper added a comment.
Do you have a particular microarchitecture where this is a faster sequence?
Why only integer and not FP?
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:2233
+ ConstantSDNode *Const = dyn_cast<ConstantSDNode>(Scalar);
+ // If VL is 1 and the scalar value won't benefited from immediate, we could
+ // use vmv.s.x.
----------------
benefited->benefit
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116277/new/
https://reviews.llvm.org/D116277
More information about the llvm-commits
mailing list