Do not use MEMBARRIER_MCR for any Thumb code.
authorBob Wilson <bob.wilson@apple.com>
Tue, 9 Nov 2010 22:50:44 +0000 (22:50 +0000)
committerBob Wilson <bob.wilson@apple.com>
Tue, 9 Nov 2010 22:50:44 +0000 (22:50 +0000)
commit54f92563806e87f47acd04fd71e4189d35d11005
tree916d2ba63e6e4110003159c276188f2380d981eb
parent7729e06c128be01fc564870d5ea3d22d236dddb5
Do not use MEMBARRIER_MCR for any Thumb code.
It is only supported for ARM code.  Normally Thumb2 code would use DMB instead,
but depending on how the compiler is invoked (e.g., -mattr=-db) that might be
disabled.  This prevents a "cannot select MEMBARRIER_MCR" error in that
situation.  Radar 8644195

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118642 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/Thumb/barrier.ll