[PATCH] D113543: [RISCV] Add inline expansion for vector ftrunc/fceil/ffloor.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 11 00:08:31 PST 2021
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:1642
+ // decrease by 1.
+ // FIXME: This should use a masked operation.
+ SDValue Adjust = DAG.getNode(ISD::FSUB, DL, VT, Truncated,
----------------
rogfer01 wrote:
> I understand our current `RISCVISD::V<op>_VL` nodes fall short here because they don't allow mask undisturbed, right?
That or we need to pattern match fadd/fsub+vselect during isel. The other complexity is that if we use RISCVISD::V<op>_VL here, we have to convert fixed types to scalable in this function. Using target independent nodes avoided that.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113543/new/
https://reviews.llvm.org/D113543
More information about the llvm-commits
mailing list