Mark vastart_save_xmm_regs as changing EFLAGS
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 17 Dec 2013 06:12:05 +0000 (06:12 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 17 Dec 2013 06:12:05 +0000 (06:12 +0000)
commit608e4a390c2adec81cba680335cba2c41af98eb4
tree5e189d96f130abc99cb7890a7dcb4195f7f46e17
parent16d0e126aa37ff2496aff064f56e32de4e59ea7c
Mark vastart_save_xmm_regs as changing EFLAGS

The vastart_save_xmm_regs pseudo-instruction expands to a test and a
branch, so it modifies EFLAGS.  Mark it so, or else the scheduler might
place it in the middle of another test+branch.

This fixes a bug exposed by r192750, which turned on the MI Scheduler
for X86.

<rdar://problem/15627766>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197469 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrCompiler.td
test/CodeGen/X86/vastart-defs-eflags.ll [new file with mode: 0644]