Revert the backend fatal error from r196939
authorReid Kleckner <reid@kleckner.net>
Tue, 10 Dec 2013 23:23:52 +0000 (23:23 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 10 Dec 2013 23:23:52 +0000 (23:23 +0000)
commit4d5bee428fad8d67b0812cf8a3d185de33faf7ec
tree8b23aac005839e032f77e5b7c6d16e85745083f8
parent9e9622d63ec41b221e9212b87682487ad0058fe6
Revert the backend fatal error from r196939

The combination of inline asm, stack realignment, and dynamic allocas
turns out to be too common to reject out of hand.

ASan inserts empy inline asm fragments and uses aligned allocas.
Compiling any trivial function containing a dynamic alloca with ASan is
enough to trigger the check.

XFAIL the test cases that would be miscompiled and add one that uses the
relevant functionality.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196986 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86RegisterInfo.cpp
test/CodeGen/X86/inline-asm-stack-realign.ll
test/CodeGen/X86/inline-asm-stack-realign2.ll
test/CodeGen/X86/inline-asm-stack-realign3.ll [new file with mode: 0644]