[AtomicExpand] Fix a crash bug when lowering unordered loads to cmpxchg
authorPhilip Reames <listmail@philipreames.com>
Tue, 19 Mar 2019 17:20:49 +0000 (17:20 +0000)
committerPhilip Reames <listmail@philipreames.com>
Tue, 19 Mar 2019 17:20:49 +0000 (17:20 +0000)
commit2153c4b8281c1e5f25887ef9183947198c50a9d2
tree37661d78ace54e1333616815cc9f1e8571dd2fb7
parentae211ece6a90c367ef0cdbabad3110aba3fcda67
[AtomicExpand] Fix a crash bug when lowering unordered loads to cmpxchg

Add tests for wider atomic loads and stores.  In the process, fix a crasher where we appearently handled unorder stores, but not loads, when lowering to cmpxchg idioms.

llvm-svn: 356482
llvm/lib/CodeGen/AtomicExpandPass.cpp
llvm/test/CodeGen/X86/atomic-unordered.ll