OSDN Git Service

Teach DAG combine to fold x-x to 0.0 when unsafe FP math is enabled.
authorOwen Anderson <resistor@mac.com>
Mon, 7 May 2012 20:51:25 +0000 (20:51 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 7 May 2012 20:51:25 +0000 (20:51 +0000)
commit713e953118175d693a3fddbf6a61dc73aa69ad87
treeef945f02d87468cf3a09338e3fda0a36da75128f
parent423f19f2dadee9325766008b63c1faf3c644043b
Teach DAG combine to fold x-x to 0.0 when unsafe FP math is enabled.

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