OSDN Git Service

[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)
commit3747be0f9d00f31cc1bdaeecc82f09ed266fe61f
treeb9bfdd0f59f5638d35e756c5b3ecab0b1e8ef872
parent3ea0d2211ad1003756a5ad8d13d6ad740f00d6e1
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283423 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/constantpool-promote.ll