[ms-inline asm] Force the use of a base pointer if the MachineFunction includes
authorChad Rosier <mcrosier@apple.com>
Tue, 19 Feb 2013 23:50:45 +0000 (23:50 +0000)
committerChad Rosier <mcrosier@apple.com>
Tue, 19 Feb 2013 23:50:45 +0000 (23:50 +0000)
commit45a52fa097edb9ae619116e68274c908aea66519
treef4fd3403ee5a2d76fb9f735f1433ec5216c2a7ad
parent4c96e99235b32b594abaf93e5c16c81aae7acb3c
[ms-inline asm] Force the use of a base pointer if the MachineFunction includes
MS-style inline assembly.

This is a follow-on to r175334.  Forcing a FP to be emitted doesn't ensure it
will be used.  Therefore, force the base pointer as well.  We now treat MS
inline assembly in the same way we treat functions with dynamic stack
realignment and VLAs.  This guarantees the BP will be used to reference
parameters and locals.
rdar://13218191

llvm-svn: 175576
llvm/lib/Target/X86/X86RegisterInfo.cpp
llvm/test/CodeGen/X86/ms-inline-asm.ll