[PATCH] D75662: [MLIR] add negi in standard dialect

Alex Zinenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 5 01:41:29 PST 2020


ftynse added a comment.

I think integer negation is always okay being implemented as "0 - x" (the only dangerous case is signed INT_MIN, but negating it leads to overflow in any case). This isn't the case for floating point numbers because of special values (nan/inf) and normalization, so it needs an instruction.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D75662





More information about the llvm-commits mailing list