[PATCH] D70426: [DAGCombiner][RISCV] Avoid FCOPYSIGN folding of legalizing operand casts
Sam Elliott via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 20 03:16:09 PST 2019
lenary added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoD.td:234
def : Pat<(fcopysign FPR64:$rs1, (fneg FPR64:$rs2)), (FSGNJN_D $rs1, $rs2)>;
+def : Pat<(fcopysign FPR64:$rs1, FPR32:$rs2), (FSGNJ_D $rs1, (FCVT_D_S $rs2))>;
+def : Pat<(fcopysign FPR32:$rs1, FPR64:$rs2), (FSGNJ_S $rs1, (FCVT_S_D $rs2, 0b111))>;
----------------
Please can you add a comment to note that these patterns will eventually not be needed, once we improve fcopysign handling?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70426/new/
https://reviews.llvm.org/D70426
More information about the llvm-commits
mailing list