[PATCH] D79187: [DAGCombiner] fold (fp_round (int_to_fp X)) -> (int_to_fp X)

Sam Elliott via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 2 06:51:46 PDT 2020


lenary updated this revision to Diff 261640.
lenary added a comment.

Updates to use original precision check (against intermediate float type), and
relaxes the hasOperation() check pre-legaltypes.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D79187

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfoF.td
  llvm/test/CodeGen/RISCV/fp-convert-indirect.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79187.261640.patch
Type: text/x-patch
Size: 5265 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200502/7cd0d8fc/attachment.bin>


More information about the llvm-commits mailing list