[AArch64] Set correct successors in CMPXCHG pseudo expansion.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 27 Apr 2016 20:33:02 +0000 (20:33 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 27 Apr 2016 20:33:02 +0000 (20:33 +0000)
commit9e71425f54731baa3263b7dca0c2badd632db33f
tree5ee0295dac20204a9468b4a8985952601f0473e7
parentb4af107239789499d182deb5111ae3008c09dcb3
[AArch64] Set correct successors in CMPXCHG pseudo expansion.

transferSuccessors() would LoadCmpBB a successor of DoneBB,
whereas it should be a successor of the original MBB.

Follow-up to r266339.

Unfortunately, it's tricky to catch this in the verifier.

llvm-svn: 267779
llvm/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
llvm/test/CodeGen/AArch64/cmpxchg-O0.ll