[PATCH] D62629: [InstCombine] Update fptrunc (fneg x)) -> (fneg (fptrunc x) for unary FNeg

Cameron McInally via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 30 07:22:17 PDT 2019


cameron.mcinally updated this revision to Diff 202184.
cameron.mcinally marked an inline comment as not done.
cameron.mcinally added a comment.

Fix the Unary/Binary operator issue.

Also note that this change will require `UnaryOperator::CreateFNegFMF(...)` from D62521 <https://reviews.llvm.org/D62521>, so cannot be committed until that is complete.


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

https://reviews.llvm.org/D62629

Files:
  llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
  llvm/test/Transforms/InstCombine/fpcast.ll
  llvm/test/Transforms/InstCombine/fpextend.ll
  llvm/test/Transforms/InstCombine/fsub.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62629.202184.patch
Type: text/x-patch
Size: 5642 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190530/c8774e94/attachment.bin>


More information about the llvm-commits mailing list