summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachinePipeliner.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2019-06-25 21:43:34 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2019-06-25 21:43:34 +0000
commitc32d307a49f5255602e7543e64e6c38a7f536abc (patch)
treeecb2cebdebc9b7ac9f12e781fc91ac962769328a /llvm/lib/CodeGen/MachinePipeliner.cpp
parentc8e450a9179cf699133a8f00ea3b08808b7a4c38 (diff)
downloadbcm5719-llvm-c32d307a49f5255602e7543e64e6c38a7f536abc.tar.gz
bcm5719-llvm-c32d307a49f5255602e7543e64e6c38a7f536abc.zip
android: enable double-word CAS on x64
The android target assumes that for the x86_64 target, the CPU supports SSE4.2 and popcnt. This implies that the CPU is Nehalem or newer. This should be sufficiently new to provide the double word compare and exchange instruction. This allows us to directly lower `__sync_val_compare_and_swap_16` to a `cmpxchg16b`. It appears that the libatomic in android's NDK does not provide the implementation for lowering calls to the library function. llvm-svn: 364352
Diffstat (limited to 'llvm/lib/CodeGen/MachinePipeliner.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud