CXX TLS: collect return blocks after SelectAllBasicBlocks.
authorManman Ren <manman.ren@gmail.com>
Thu, 24 Mar 2016 23:21:29 +0000 (23:21 +0000)
committerManman Ren <manman.ren@gmail.com>
Thu, 24 Mar 2016 23:21:29 +0000 (23:21 +0000)
commit9dd8c146746a0435115a461bd19d9aede965800c
tree3ce1b0b47204392a70e4f08855cd97778cdb824f
parentfff7a3d0efde3f6f3d33c7b5e83d381101eea044
CXX TLS: collect return blocks after SelectAllBasicBlocks.

It is incorrect to get the corresponding MBB for a ReturnInst before
SelectAllBasicBlocks since SelectAllBasicBlocks can change the
correspondence between a ReturnInst and the MBB it is in.

PR27062

llvm-svn: 264358
llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
llvm/test/CodeGen/X86/cxx_tlscc64.ll