Don't adjust for alignment padding in OffsetIsInRange.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 16 Dec 2011 19:10:00 +0000 (19:10 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 16 Dec 2011 19:10:00 +0000 (19:10 +0000)
commitf9aabb8f32d61d19f57fb4710c06d01a12fedce7
treedd0d6fee39ccea9b9ffe66412814157a3344618d
parent903456245bda41adc90dcab67623169ee3aaff8b
Don't adjust for alignment padding in OffsetIsInRange.

This adjustment is already included in the block offsets computed by
BasicBlockInfo, and adjusting again here can cause the pass to loop.

When CreateNewWater splits a basic block, OffsetIsInRange would reject
the new CPE on the next pass because of the too conservative alignment
adjustment. This caused the block to be split again, and so on.

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