Change how FP immediates are handled.
authorNate Begeman <natebegeman@mac.com>
Thu, 14 Feb 2008 08:57:00 +0000 (08:57 +0000)
committerNate Begeman <natebegeman@mac.com>
Thu, 14 Feb 2008 08:57:00 +0000 (08:57 +0000)
commite179584f9b740cf3a36bde70f8cab40de59b8081
tree154abecd7804f8cb2ee74ced19f41990f9725832
parent6e9bceea976a993dbc6a543c2135980df7616b97
Change how FP immediates are handled.
1) ConstantFP is now expand by default
2) ConstantFP is not turned into TargetConstantFP during Legalize
   if it is legal.

This allows ConstantFP to be handled like Constant, allowing for
targets that can encode FP immediates as MachineOperands.

As a bonus, fix up Itanium FP constants, which now correctly match,
and match more constants!  Hooray.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47121 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/llvm/CodeGen/ScheduleDAG.h
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
lib/CodeGen/SelectionDAG/TargetLowering.cpp
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/Alpha/AlphaISelLowering.cpp
lib/Target/IA64/IA64ISelLowering.cpp
lib/Target/IA64/IA64InstrInfo.td
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/Sparc/SparcISelDAGToDAG.cpp
lib/Target/TargetSelectionDAG.td
lib/Target/X86/X86ISelLowering.cpp
utils/TableGen/DAGISelEmitter.cpp