[PATCH] D61916: Teach InstSimplify transform -X + X --> 0.0 about unary FNeg

Kevin P. Neal via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 15 05:38:59 PDT 2019


kpn added a comment.

Is this an allowed transform?

If we transform "y = -x + x;" into "y = 0;" then won't that eliminate a trap? Is that allowed?


Repository:
  rL LLVM

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

https://reviews.llvm.org/D61916





More information about the llvm-commits mailing list