[ARM] Another f16 litpool fix
authorSjoerd Meijer <sjoerd.meijer@arm.com>
Tue, 27 Feb 2018 19:26:02 +0000 (19:26 +0000)
committerSjoerd Meijer <sjoerd.meijer@arm.com>
Tue, 27 Feb 2018 19:26:02 +0000 (19:26 +0000)
commitfc0d02cbbfaaa91bf09666bffb2c2f64342bdd07
tree78e630f29b1e2ab2e24fc486d052b08fd44de984
parentde979bfe58a27d7d228b87ac32aeb17dd502c7bc
[ARM] Another f16 litpool fix

We were always setting the block alignment to 2 bytes in Thumb mode
and 4-bytes in ARM mode (r325754, and r325012), but this could cause
reducing the block alignment when it already had been aligned (e.g.
in Thumb mode when the block is a CPE that was already 4-byte aligned).

Patch by Momchil Velikov, I've only added a test.

Differential Revision: https://reviews.llvm.org/D43777

llvm-svn: 326232
llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
llvm/test/CodeGen/ARM/fp16-litpool3-arm.mir [new file with mode: 0644]