OSDN Git Service

Teach legalize to promote copy(from|to)reg, instead of making the isel pass
authorChris Lattner <sabre@nondot.org>
Tue, 18 Jan 2005 17:54:55 +0000 (17:54 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 18 Jan 2005 17:54:55 +0000 (17:54 +0000)
commitef5cd1d3cf7d0b20987a545fcd2d0af2bfe6c422
tree9f3abdbf215235f84fd68c828c01d2fadcf960fc
parentb422aeac9efe931fc8e0732edeeb1572aee37cc6
Teach legalize to promote copy(from|to)reg, instead of making the isel pass
do it.  This results in better code on X86 for floats (because if strict
precision is not required, we can elide some more expensive double -> float
conversions like the old isel did), and allows other targets to emit
CopyFromRegs that are not legal for arguments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19668 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp