[Inline] Fix incorrectly dropped noalias metadata
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 18 Nov 2020 20:08:54 +0000 (21:08 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 18 Nov 2020 20:22:50 +0000 (21:22 +0100)
commitf4a3969bffceac2df4bee10992ea48136122cae0
tree615d6cc6a6c9cb6878c441edb6d78dcc31b98ec0
parent0dca0b7034281015cfffb3c91fc89c53b220dc49
[Inline] Fix incorrectly dropped noalias metadata

This is the same fix as 23aeadb89df38406dc4d929d08286f7ce31040eb,
just for CloneScopedAliasMetadata rather than PropagateCallSiteMetadata.

In this case the previous outcome was incorrectly dropped metadata,
as it was not part of the computed metadata map.

The real change in the test is that the first load now retains
metadata, the rest of the changes are due to changes in metadata
numbering.
llvm/lib/Transforms/Utils/InlineFunction.cpp
llvm/test/Transforms/Inline/noalias-cs.ll