[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)
commit1c0bd6dd2ca71f4ad8d4984340a729b3e959cb80
tree4151890975c3ae70e3bf4b06a1f162ab6bdef237
parentb342f026a466e6faf331d91fced29db5d39796aa
[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.

llvm-svn: 363998
llvm/lib/Transforms/Scalar/Reassociate.cpp
llvm/test/Transforms/Reassociate/pr42349.ll [new file with mode: 0644]