Fix a problem with blocks that need to be split twice.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 28 Apr 2012 06:21:38 +0000 (06:21 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 28 Apr 2012 06:21:38 +0000 (06:21 +0000)
commit9b10dae0bf3a796ac06e94f072ac67126e30a255
tree433533f7d7c96f82ab574647b4db000ae20e9c52
parent2674a4acdb51ce610d060b76608f631765a6e508
Fix a problem with blocks that need to be split twice.

The code could search past the end of the basic block when there was
already a constant pool entry after the block.

Test case with giant basic block in SingleSource/UnitTests/Vector/constpool.c

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155753 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMConstantIslandPass.cpp