Move the code that inserts X87 FP_REG_KILL instructions from a
authorDan Gohman <gohman@apple.com>
Wed, 12 Nov 2008 22:55:05 +0000 (22:55 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 12 Nov 2008 22:55:05 +0000 (22:55 +0000)
commitbc5cbb8be9d935240be5a57a8f37c5258a9d0563
tree58569a85b1b8597fd278d30f126dc74bb30e2425
parentcb5798285aa3a3cd93448beda6264152c761e8e3
Move the code that inserts X87 FP_REG_KILL instructions from a
special-purpose hook to a new pass. Also, add check to see if any
x87 virtual registers are used, to avoid doing any work in the
common case that no x87 code is needed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59190 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAGISel.h
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
lib/Target/X86/CMakeLists.txt
lib/Target/X86/X86.h
lib/Target/X86/X86FloatingPointRegKill.cpp [new file with mode: 0644]
lib/Target/X86/X86ISelDAGToDAG.cpp
lib/Target/X86/X86TargetMachine.cpp