Extend the r107852 optimization which turns some fp compare to code sequence using...
authorEvan Cheng <evan.cheng@apple.com>
Tue, 13 Jul 2010 19:27:42 +0000 (19:27 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 13 Jul 2010 19:27:42 +0000 (19:27 +0000)
commit218977b53eb215e5534db2f727d109ab18817cc1
tree045e03459bb634046cbc898c34d0f0ee4efd5e23
parent7a415999625f9791a8a7eea2027e628e29de15c0
Extend the r107852 optimization which turns some fp compare to code sequence using only i32 operations. It now optimize some f64 compares when fp compare is exceptionally slow (e.g. cortex-a8). It also catches comparison against 0.0.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108258 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/ARM/ARMISelLowering.h
lib/Target/ARM/ARMInstrInfo.td
test/CodeGen/ARM/fpcmp-opt.ll