[PATCH] D96028: [RISCV] Add patterns for scalable-vector fabs & fcopysign

Fraser Cormack via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 15 04:02:09 PST 2021


frasercrmck marked an inline comment as done.
frasercrmck added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:2759
+      break;
+    // There is a form of VFSGNJ which injects the negated sign of its second
+    // operand. Try and bubble any FNEG up after the extend/round to produce
----------------
craig.topper wrote:
> Should we avoid doing this if the extend/round is used elsewhere so we don't end up with extends/rounds of both the original and negated value?
Yeah probably because extends/rounds are typically more expensive than fneg. Will update.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D96028



More information about the llvm-commits mailing list