[PATCH] D142093: [InstCombine] trunc (fptoui|fptosi)

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 23 05:03:50 PST 2023


samparker updated this revision to Diff 491313.
samparker edited the summary of this revision.
samparker added a comment.

Using semanticsMaxExponent, so hopefully correct now...

A scalar trunc, to a non-simple type, is still only explored if the input is also a non-simple type but I presume that would be better changed, if at all, in a separate patch.


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

https://reviews.llvm.org/D142093

Files:
  llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
  llvm/test/Transforms/InstCombine/trunc-fp-to-int.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142093.491313.patch
Type: text/x-patch
Size: 8327 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230123/52cd337a/attachment.bin>


More information about the llvm-commits mailing list