summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/atomic-flags.ll
Commit message (Collapse)AuthorAgeFilesLines
* x86: preserve flags when folding atomic operationsJF Bastien2015-10-151-4/+27
| | | | | | | | | | D4796 taught LLVM to fold some atomic integer operations into a single instruction. The pattern was unaware that the instructions clobbered flags. I fixed some of this issue in D13680 but had missed INC/DEC. This patch adds the missing EFLAGS definition. llvm-svn: 250438
* x86: preserve flags when folding atomic operationsJF Bastien2015-10-131-0/+38
Summary: D4796 taught LLVM to fold some atomic integer operations into a single instruction. The pattern was unaware that the instructions clobbered flags. This patch adds the missing EFLAGS definition. Floating point operations don't set flags, the subsequent fadd optimization is therefore correct. The same applies for surrounding load/store optimizations. Reviewers: rsmith, rtrieu Subscribers: llvm-commits, reames, morisset Differential Revision: http://reviews.llvm.org/D13680 llvm-svn: 250135
OpenPOWER on IntegriCloud