[PATCH] D131551: [RISCV] Fold vector binary operatrion into select with identity constant.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 16 21:22:17 PST 2022
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:1214
+
+ if (VT.getScalarSizeInBits() >= Subtarget.getELEN())
+ return false;
----------------
This is imprecise for FP which has a different ELEN for Zve64f and Zve32x.
I think you can ignore it for scalable vectors since those elements always have to be supported if we see them. For fixed vectors we should check isTypeLegal.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131551/new/
https://reviews.llvm.org/D131551
More information about the llvm-commits
mailing list