about summary refs log tree commit diff
path: root/src/test/codegen/noalias-unpin.rs
AgeCommit message (Collapse)AuthorLines
2021-03-21Don't compute optimized PointerKind for unoptimized buildsNikita Popov-1/+1
This saves us both the Freeze/Unpin queries, and avoids placing noalias attributes, which have a compile-time impact on LLVM even in optnone builds (due to always_inline functions).
2021-03-21Don't consider !Unpin references as noaliasNikita Popov-0/+15
Such structures may contain self-references, in which case the same location may be accessible through a pointer that is not based-on the noalias pointer. This is still grey area as far as language semantics are concerned, but checking for !Unpin as an indicator for self-referential sturctures seems like a good approach for the meantime.