OSDN Git Service

If unsafe FP optimization is not set, don't allow -(A-B) => B-A because
authorMon P Wang <wangmp@apple.com>
Sat, 31 Jan 2009 06:07:45 +0000 (06:07 +0000)
committerMon P Wang <wangmp@apple.com>
Sat, 31 Jan 2009 06:07:45 +0000 (06:07 +0000)
commita7b6cff99f5015120f828c316823cb32eed93901
treea046b83051e726f491d34728317c9eb396f50f58
parent9729c5ad3413d3b69d4bc41aa918a7a8dd6bf9f0
If unsafe FP optimization is not set, don't allow -(A-B) => B-A because
when A==B, -0.0 != +0.0.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63474 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
test/CodeGen/X86/neg_fp.ll [new file with mode: 0644]