OSDN Git Service

[PPC] Fix atomics lowering in DAG lowering.
authorTim Shen <timshen91@gmail.com>
Thu, 25 May 2017 22:58:35 +0000 (22:58 +0000)
committerTim Shen <timshen91@gmail.com>
Thu, 25 May 2017 22:58:35 +0000 (22:58 +0000)
commit7a457502338f3217336852446ba068408222202c
tree3177768e0dc32ec1c290118c221a2a600d429a7c
parente55679d86d978194e18f90d5dd68ee2668295d8d
[PPC] Fix atomics lowering in DAG lowering.

I forgot to forward the chain, causing some missing instruction
dependencies. The test crashes the compiler without this patch.

Inspired by the test case, D33519 also tries to remove the extra sync.

Differential Revision: https://reviews.llvm.org/D33573

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303931 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/atomics-constant.ll [new file with mode: 0644]