It is pointless to turn a UINT_TO_FP into an
authorDuncan Sands <baldrick@free.fr>
Fri, 11 Jul 2008 17:00:14 +0000 (17:00 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 11 Jul 2008 17:00:14 +0000 (17:00 +0000)
commitac6cecec189ba9689c42543c3106c02b96d788da
tree09113ff169adb4b8c259362656c76eaa45604b55
parent9bed0f58eb7f5e9e22d062f3880a5fabfdd0dfdd
It is pointless to turn a UINT_TO_FP into an
SINT_TO_FP libcall plus additional operations:
it might as well be a direct UINT_TO_FP libcall.
So only turn it into an SINT_TO_FP if the target
has special handling for SINT_TO_FP.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53461 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/RuntimeLibcalls.h
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
lib/CodeGen/SelectionDAG/LegalizeTypes.h
lib/CodeGen/SelectionDAG/TargetLowering.cpp