| commit | e68f71574f9c61f72d1aca2811d85da9e4bc0a69 | [log] [tgz] |
|---|---|---|
| author | Sanjay Patel <spatel@rotateright.com> | Wed Dec 31 22:14:05 2014 +0000 |
| committer | Sanjay Patel <spatel@rotateright.com> | Wed Dec 31 22:14:05 2014 +0000 |
| tree | 542273ea5e87168e9ec96a46f80efb3c267b688c | |
| parent | 0dfd2400688266e688c00b62b38491d4a297c20c [diff] |
InstCombine: fsub nsz 0, X ==> fsub nsz -0.0, X Some day the backend may handle instruction-level fast math flags and make this transform unnecessary, but it's still better practice to use the canonical representation of fneg when possible (use a -0.0). This is a partial fix for PR20870 ( http://llvm.org/bugs/show_bug.cgi?id=20870 ). See also http://reviews.llvm.org/D6723. Differential Revision: http://reviews.llvm.org/D6731 llvm-svn: 225050