Improve the successor list update in TailDuplication.cpp.
authorCong Hou <congh@google.com>
Tue, 15 Dec 2015 10:10:40 +0000 (10:10 +0000)
committerCong Hou <congh@google.com>
Tue, 15 Dec 2015 10:10:40 +0000 (10:10 +0000)
commit892628b503eba347a9415e126073c42ebeb63f35
treef3875b672336152a5c98ac3a851d7ec6587a7ce3
parent35a68db8ba0edd48d4db545388702f6fa64cc9b6
Improve the successor list update in TailDuplication.cpp.

This patch improves a temporary fix in r255530 so that we can normalize
successor list without trigger assertion failures in tail duplication pass.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255638 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TailDuplication.cpp
test/CodeGen/ARM/taildup-branch-weight.ll