[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)
commite15b20eb1352b21b839c997a26e243cefa729589
tree58a1d730e6f61a12d5f5bd13dca8512c02a213b2
parent20e3be7972bd33f0b079b8566557491a3291774e
[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>!

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