[RegionInfo] Remove unused and broken function splitBlock
authorMichael Kruse <llvm@meinersbur.de>
Fri, 14 Aug 2015 20:20:00 +0000 (20:20 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Fri, 14 Aug 2015 20:20:00 +0000 (20:20 +0000)
commit87e0087082d1033f384af361ef18c2e1416e2440
treef003968004cc3338e966ee91c01eead55788a6c4
parent45617595584a43965cc68aa4105655dfa45c5129
[RegionInfo] Remove unused and broken function splitBlock

Summary:
It always makes NewBB the entry of the region instead of OldBB. This breaks if there are edges from inside the region to OldBB. OldBB is moved out of the region and hence there are exiting edges to OldBB and the region's exit block, contradicting the single-exit condition for regions.

The only use from Polly is going to be removed, hence I propose to remove the function completely.

Reviewers: grosser

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D11873

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245092 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/RegionInfo.h
include/llvm/Analysis/RegionInfoImpl.h