This is an archive of the discontinued LLVM Phabricator instance.

[LangRef] Mention that freeze does not consider aggregate's paddings
ClosedPublic

Authored by aqjune on Jul 15 2020, 7:35 PM.

Details

Summary

Make explicit that freeze does not touch paddings of an aggregate.
(Relevant comment: https://reviews.llvm.org/D83752#2152550)

This implies that v = freeze(load p); store v, q may still leave undef bits
or poison in memory if v is an aggregate, but it still happens for
non-byte integers such as i1.

Diff Detail

Event Timeline

aqjune created this revision.Jul 15 2020, 7:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 15 2020, 7:35 PM
This revision is now accepted and ready to land.Jul 16 2020, 12:20 PM
This revision was automatically updated to reflect the committed changes.