Consider CPE alignment in CreateNewWater().
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 14 Dec 2011 23:48:54 +0000 (23:48 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 14 Dec 2011 23:48:54 +0000 (23:48 +0000)
commit299b059cd675f1e5beac1a2383a44e062e2eef43
tree2cc139c581be71f1274a1cf487a64c5fa7f51323
parent799ca9d1b7cfa8910ac27f8de4929bfbd278114d
Consider CPE alignment in CreateNewWater().

An aligned constant pool entry may require extra alignment padding where
the new water is created.  Take that into account when computing offset.

Also consider the alignment of other constant pool entries when
splitting a basic block.  Alignment padding may make it necessary to
move the split point higher.

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