[ARM] Constant pool promotion - fix alignment calculation
authorJames Molloy <james.molloy@arm.com>
Thu, 6 Oct 2016 07:56:00 +0000 (07:56 +0000)
committerJames Molloy <james.molloy@arm.com>
Thu, 6 Oct 2016 07:56:00 +0000 (07:56 +0000)
commit6215fad0e901adcafdafb299761973612b92264d
tree02a59bd867881978653d5a26b3e3ffa6f7e214d7
parent78561c4917bcb77c509aa342180ed3bd7ee7cb5d
[ARM] Constant pool promotion - fix alignment calculation

Global variables are GlobalValues, so they have explicit alignment. Querying
DataLayout for the alignment was incorrect.

Testcase added.

llvm-svn: 283423
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/test/CodeGen/ARM/constantpool-promote.ll