[Reassociate] Don't reassociate when mixing regular and fast-math FP
authorChad Rosier <mcrosier@codeaurora.org>
Thu, 6 Nov 2014 16:46:37 +0000 (16:46 +0000)
committerChad Rosier <mcrosier@codeaurora.org>
Thu, 6 Nov 2014 16:46:37 +0000 (16:46 +0000)
commitac6a2f532ca67d0fc9be24f46683b108234cae57
tree2fd088f56f4e8d227306e678f083e178a7820c52
parentb70e27ca7b016109a9ce3dfef1f0924db8e00212
[Reassociate] Don't reassociate when mixing regular and fast-math FP
instructions.  Inlining might cause such cases and it's not valid to
reassociate floating-point instructions without the unsafe algebra flag.

Patch by Mehdi Amini <mehdi_amini@apple.com>!

llvm-svn: 221462
llvm/lib/Transforms/Scalar/Reassociate.cpp
llvm/test/Transforms/Reassociate/mixed-fast-nonfast-fp.ll [new file with mode: 0644]