This is an archive of the discontinued LLVM Phabricator instance.

Use DL preferred alignment for alloca in Value::getPointerAlignment
ClosedPublic

Authored by apilipenko on Feb 24 2016, 6:47 AM.

Details

Summary

Teach Value::getPointerAlignment that allocas with no explicit alignment are aligned to preferred alignment of the allocated type.

Diff Detail

Event Timeline

apilipenko updated this revision to Diff 48927.Feb 24 2016, 6:47 AM
apilipenko retitled this revision from to Use DL preferred alignment for alloca in Value::getPointerAlignment .
apilipenko updated this object.
apilipenko added a reviewer: hfinkel.
apilipenko added a subscriber: llvm-commits.
hfinkel accepted this revision.Apr 26 2016, 6:27 PM
hfinkel edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Apr 26 2016, 6:27 PM
This revision was automatically updated to reflect the committed changes.