HomePhabricator

Merging r260587:

Description

Merging r260587:

r260587 | pete | 2016-02-11 13:10:40 -0800 (Thu, 11 Feb 2016) | 13 lines

Set load alignment on aggregate loads.

When optimizing a extractvalue(load), we generate a load from the
aggregate type. This load didn't have alignment set and so would
get the alignment of the type. This breaks when the type is packed
and so the alignment should be lower.

For example, loading { int, int } would give us alignment of 4, but
the original load from this type may have an alignment of 1 if packed.

Reviewed by David Majnemer

Differential revision: http://reviews.llvm.org/D17158

Details

Committed
hansFeb 11 2016, 5:42 PM
Parents
rL260639: <float.h>: do not define DECIMAL_DIG in -std=c89 mode; this macro was added…
Branches
Unknown
Tags
Unknown