[llvm] [VectorCombine] Preserve scoped alias metadata (PR #153714)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 15 02:34:21 PDT 2025
================
@@ -1811,6 +1811,10 @@ bool VectorCombine::scalarizeLoadExtract(Instruction &I) {
// erased in the correct order.
Worklist.push(LI);
+ LLVMContext &ctx = LI->getContext();
+ unsigned aliasScopeKind = ctx.getMDKindID("alias.scope");
+ unsigned noAliasKind = ctx.getMDKindID("noalias");
----------------
nikic wrote:
Use `MD_alias_scope` and `MD_noalias` instead.
https://github.com/llvm/llvm-project/pull/153714
More information about the llvm-commits
mailing list