Skip to content
Commit 9a708233 authored by Dan Gohman's avatar Dan Gohman
Browse files

Teach GetNegatedExpression to negate 0-B to B in UnsafeFPMath mode, and

visitFSUB to fold 0-B to -B in UnsafeFPMath mode. Also change visitFNEG
to use isNegatibleForFree/GetNegatedExpression instead of doing a subset
of the same thing manually.

This fixes test/CodeGen/X86/negative-sin.ll.

llvm-svn: 37842
parent 11a4008a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment