Fix PR5247, "lock addq" pattern (and other atomics), it DOES modify EFLAGS.
authorTorok Edwin <edwintorok@gmail.com>
Mon, 19 Oct 2009 11:00:58 +0000 (11:00 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Mon, 19 Oct 2009 11:00:58 +0000 (11:00 +0000)
commit6602922878ca84f5adf86dc299b6fb32086a79f8
tree2c0bbca15731217a866ea47f80e4ed7e97db15b4
parente9869d8eebf5e22ebdb6b714c15794beac237693
Fix PR5247, "lock addq" pattern (and other atomics), it DOES modify EFLAGS.
LLC was scheduling compares before the adds causing wrong branches to be taken
in programs, resulting in misoptimized code wherever atomic adds where used.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84485 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86Instr64bit.td
test/CodeGen/X86/2009-10-19-atomic-cmp-eflags.ll [new file with mode: 0644]