llvm-6502/lib/Transforms/InstCombine
Sanjay Patel 28650b8ec2 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



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225050 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-31 22:14:05 +00:00
..
CMakeLists.txt
InstCombine.h InstCombine: Infer nuw for multiplies 2014-12-26 09:50:35 +00:00
InstCombineAddSub.cpp InstCombine: fsub nsz 0, X ==> fsub nsz -0.0, X 2014-12-31 22:14:05 +00:00
InstCombineAndOrXor.cpp InstCombe: Infer nsw for multiplies 2014-12-26 09:10:14 +00:00
InstCombineCalls.cpp Carry facts about nullness and undef across GC relocation 2014-12-29 23:27:30 +00:00
InstCombineCasts.cpp More code format fix from r224133, NFC 2014-12-12 18:48:37 +00:00
InstCombineCompares.cpp InstCombine: try to transform A-B < 0 into A < B 2014-12-31 04:21:41 +00:00
InstCombineLoadStoreAlloca.cpp Loading from null is valid outside of addrspace 0 2014-12-29 22:46:21 +00:00
InstCombineMulDivRem.cpp InstCombine: Infer nuw for multiplies 2014-12-26 09:50:35 +00:00
InstCombinePHI.cpp Update SetVector to rely on the underlying set's insert to return a pair<iterator, bool> 2014-11-19 07:49:26 +00:00
InstCombineSelect.cpp InstCombine: Squash an icmp+select into bitwise arithmetic 2014-12-20 04:45:35 +00:00
InstCombineShifts.cpp Make use of @llvm.assume in ValueTracking (computeKnownBits, etc.) 2014-09-07 18:57:58 +00:00
InstCombineSimplifyDemanded.cpp Add additional patterns for @llvm.assume in ValueTracking 2014-09-07 19:21:07 +00:00
InstCombineVectorOps.cpp fixed some typos 2014-07-07 22:13:58 +00:00
InstCombineWorklist.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
InstructionCombining.cpp Reapply: [InstCombine] Fix visitSwitchInst to use right operand types for sub cstexpr 2014-12-19 17:12:35 +00:00
LLVMBuild.txt
Makefile