[PATCH] D62699: [InlineCost] Add support for unary fneg.

Cameron McInally via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 4 06:29:56 PDT 2019


cameron.mcinally added a comment.

In D62699#1528428 <https://reviews.llvm.org/D62699#1528428>, @efriedma wrote:

> Is it likely that we're ever going to be able to do anything useful with the fast-math flags?


I don't think that decision has been made. It's just a bit-twiddle, so I'm not sure if FMFs would give us anything.

That said, if we knew nnan and nsz, we could convert a unary FNeg into a binary FNeg. I don't think that would be a win, but haven't studied it...


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D62699





More information about the llvm-commits mailing list