]> granicus.if.org Git - llvm/commit
[Reassociate] Remove bogus assert reported in PR42349.
authorCameron McInally <cameron.mcinally@nyu.edu>
Thu, 20 Jun 2019 23:03:55 +0000 (23:03 +0000)
committerCameron McInally <cameron.mcinally@nyu.edu>
Thu, 20 Jun 2019 23:03:55 +0000 (23:03 +0000)
commitd326b55fd211abdc52520a39e2f183e3ff04b501
tree0cd7ce1e1ef3b3bceffb86383a3abf41afb78e9e
parent347248d4837e7a8e31eb9103a321414b0a205da8
[Reassociate] Remove bogus assert reported in PR42349.

Also, add a FIXME for the unsafe transform on a unary FNeg. A unary FNeg can only be transformed to a FMul by -1.0 when the nnan flag is present. The unary FNeg project is a WIP, so the unsafe transformation is acceptable until that work is complete.

The bogus assert with introduced in D63445.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363998 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/Reassociate.cpp
test/Transforms/Reassociate/pr42349.ll [new file with mode: 0644]