[llvm] [InstCombine][RISCV] Convert VPIntrinsics with splat operands to splats (PR #65706)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 13 02:08:05 PDT 2023
================
@@ -1737,8 +1855,12 @@ bool VectorCombine::run() {
// This transform works with scalable and fixed vectors
// TODO: Identify and allow other scalable transforms
- if (isa<VectorType>(I.getType()))
- MadeChange |= scalarizeBinopOrCmp(I);
+ if (isa<VectorType>(I.getType())) {
+ if (VPIntrinsic *VPI = dyn_cast<VPIntrinsic>(&I))
----------------
RKSimon wrote:
(style) `auto *VPI = dyn_cast<VPIntrinsic>(&I)`
https://github.com/llvm/llvm-project/pull/65706
More information about the llvm-commits
mailing list