Transform div to mul with reciprocal only when fp imm is legal.
authorAnton Korobeynikov <asl@math.spbu.ru>
Tue, 10 Apr 2012 13:22:49 +0000 (13:22 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Tue, 10 Apr 2012 13:22:49 +0000 (13:22 +0000)
commit999821cddfeb8fd5115261c539c951f8733c943a
tree57b2691d3e3a8ba3e23cff0d4ed27e6bfa5e1c86
parentbce0de462f9510e57598aeae918d1e1cced718ab
Transform div to mul with reciprocal only when fp imm is legal.
This fixes PR12516 and uncovers one weird problem in legalize (workarounded)

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