[PATCH] D44909: [DAGCombine] (float)((int) f) --> ftrunc (PR36617)

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 26 16:38:29 PDT 2018


spatel updated this revision to Diff 139865.
spatel retitled this revision from "[InstCombine] (float)((int) f) --> llvm.trunc (PR36617)" to "[DAGCombine] (float)((int) f) --> ftrunc (PR36617)".
spatel edited the summary of this revision.
spatel added reviewers: nemanjai, hfinkel.
spatel added a comment.

Patch updated:
Move the transform to the DAG and only do it when the target says it is legal. This is a completely different patch than the last rev, but keeping it under the same review number for context.


https://reviews.llvm.org/D44909

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/PowerPC/fp-int128-fp-combine.ll
  test/CodeGen/PowerPC/fp-to-int-to-fp.ll
  test/CodeGen/PowerPC/no-extra-fp-conv-ldst.ll
  test/CodeGen/X86/2011-10-19-widen_vselect.ll
  test/CodeGen/X86/ftrunc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44909.139865.patch
Type: text/x-patch
Size: 22192 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180326/859a6ded/attachment.bin>


More information about the llvm-commits mailing list