[ARM] Set correct successors in CMPXCHG pseudo expansion.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 27 Apr 2016 20:32:54 +0000 (20:32 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 27 Apr 2016 20:32:54 +0000 (20:32 +0000)
commitb4af107239789499d182deb5111ae3008c09dcb3
tree28b96e5d1a5426cf7d4eaadc41abf580c4afc8b4
parent3f595aabe220a622376d1d76631b677daa532604
[ARM] Set correct successors in CMPXCHG pseudo expansion.

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

The testcase changes are caused by Thumb2SizeReduction, which
was previously confused by the broken CFG.

Follow-up to r266679.

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

llvm-svn: 267778
llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
llvm/test/CodeGen/ARM/cmpxchg-O0.ll