Implement PR5795 by merging duplicated return blocks. This could go further
authorChris Lattner <sabre@nondot.org>
Tue, 22 Dec 2009 06:07:30 +0000 (06:07 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 22 Dec 2009 06:07:30 +0000 (06:07 +0000)
commit1a0e7081c3e94ae69f2768465da34a3dceaaa5f6
tree981d4fe13836189cc2a2cfc4a43baac9d5a09a6e
parent42385b03aa719aec326a6236b9310298b424c865
Implement PR5795 by merging duplicated return blocks.  This could go further
by merging all returns in a function into a single one, but simplifycfg
currently likes to duplicate the return (an unfortunate choice!)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91890 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SimplifyCFGPass.cpp
test/Transforms/SimplifyCFG/basictest.ll