OSDN Git Service

Generalize FP constant shrinking optimization to apply to any vt
authorChris Lattner <sabre@nondot.org>
Wed, 5 Mar 2008 06:48:13 +0000 (06:48 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 5 Mar 2008 06:48:13 +0000 (06:48 +0000)
commitec4a5672f86a42730d8fcf98243322520eaffb33
treea57e6d8ece74d1d20f4b93a52b0e389450b9e9e7
parentaa2acbbbf06348f20274f4eeb77f9761c654a589
Generalize FP constant shrinking optimization to apply to any vt
except ppc long double.  This allows us to shrink constant pool
entries for x86 long double constants, which in turn allows us to
use flds/fldl instead of fldt.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47938 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
test/CodeGen/X86/shrink-fp-const2.ll [new file with mode: 0644]