[PATCH] D90854: [RISCV] Custom lowering of FLT_ROUNDS_

Serge Pavlov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 21 20:40:55 PDT 2021


sepavloff added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:4621
+    SDValue Res = DAG.getNode(ISD::FLT_ROUNDS_, DL, VTs, N->getOperand(0));
+    Results.push_back(SDValue(Res.getNode(), 0));
+    Results.push_back(SDValue(Res.getNode(), 1));
----------------
craig.topper wrote:
> I missed it before, but you can use Res.getValue(0) and Res.getValue(1) to shorten these lines if you want.
Thank you for advice! I will incorporate these changes too.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90854/new/

https://reviews.llvm.org/D90854



More information about the llvm-commits mailing list