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)
commit5af144809e4774c22aa22e3c9a3d230594b53f43
tree9709c6bab3d99d300164d8b0e02b76c15ea7a746
parent9ca2e7293bd5d4d8b944856e0ad7be9abf9b764b
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.

llvm-svn: 146751
llvm/lib/Target/ARM/ARMConstantIslandPass.cpp