memory inputs to an inline asm are required to have an address available.
authorChris Lattner <sabre@nondot.org>
Sat, 28 Apr 2007 06:42:38 +0000 (06:42 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 28 Apr 2007 06:42:38 +0000 (06:42 +0000)
commit44b2c5098f5cf766b4eff43d9eb0d8a9a143e7d8
tree899f3e17d2f420ca0a08d57f08f444ff615fc2ba
parentc44f3ea172c751c8af9b2740355c2f3e7b7fc783
memory inputs to an inline asm are required to have an address available.
If the operand is not already an indirect operand, spill it to a constant
pool entry or a stack slot.

This fixes PR1356 and CodeGen/X86/2007-04-27-InlineAsm-IntMemInput.ll

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