summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetData.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-09-29 10:41:21 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-09-29 10:41:21 +0000
commit903790eff54f473fca8fbf6915713751a070b5df (patch)
tree49cdd5d36d525652928166371f05f21d0465f90b /llvm/lib/Target/TargetData.cpp
parentfb9d30dd648c04fba2a1eb0c4366924e14eecd46 (diff)
downloadbcm5719-llvm-903790eff54f473fca8fbf6915713751a070b5df.tar.gz
bcm5719-llvm-903790eff54f473fca8fbf6915713751a070b5df.zip
Fix a somewhat surprising miscompile where code relying on an ABI
alignment could lose it due to the alloca type moving down to a much smaller alignment guarantee. Now SROA will actively compute a proper alignment, factoring the target data, any explicit alignment, and the offset within the struct. This will in some cases lower the alignment requirements, but when we lower them below those of the type, we drop the alignment entirely to give freedom to the code generator to align it however is convenient. Thanks to Duncan for the lovely test case that pinned this down. =] llvm-svn: 164891
Diffstat (limited to 'llvm/lib/Target/TargetData.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud