Account for CPE alignment when searching for new water.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 13 Dec 2011 00:44:30 +0000 (00:44 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 13 Dec 2011 00:44:30 +0000 (00:44 +0000)
commit2e29024d2e3aa23a1ec049c30dbce903e57d5f9b
treebc53b2e9be36dd28bbb65622465311b85a4a610a
parente97b4990e1c724d966abaaa6b99eb11e65286e08
Account for CPE alignment when searching for new water.

Constant pool entries with different alignment may cause more alignment
padding to be inserted. Compute the amount of padding needed, and try to
pick the location that requires the least amount of padding.

Also take the extra padding into account when the water is above the
use.

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