[PATCH] D53235: [RISCV] Add RV64F codegen support
Lewis Revill via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 22 06:26:45 PST 2019
lewis-revill added inline comments.
================
Comment at: lib/Target/RISCV/RISCVISelLowering.cpp:636
+ // If the input to BitcastAndSextF32ToI64 is just TruncAndBitcastI64ToF32
+ // then the operation is redundnat. Instead, use TruncAndBitcastI64ToF32
+ // operand directly.
----------------
Typo 'redundant'
================
Comment at: test/CodeGen/RISCV/float-arith.ll:148
+; RV64IF-NEXT: fmv.x.w a0, ft0
+; RV64IF-NEXT: ret
%1 = fsub float -0.0, %a
----------------
Can RV64 employ the same technique as RV32 here, and for other similar DAG combines? I'm guessing cost-wise it would be desirable to do so.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D53235/new/
https://reviews.llvm.org/D53235
More information about the llvm-commits
mailing list