[llvm] [InstCombine] Propagate invariant.load metadata across unpacked loads (PR #152186)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 5 19:19:18 PDT 2025
================
@@ -764,6 +773,7 @@ static Instruction *unpackLoadToAggregate(InstCombinerImpl &IC, LoadInst &LI) {
Name + ".unpack");
// Propagate AA metadata. It'll still be valid on the narrowed load.
L->setAAMetadata(LI.getAAMetadata());
----------------
dtcxzyw wrote:
The AATag should be adjusted to use the new offset and size. cc @nikic
https://github.com/llvm/llvm-project/pull/152186
More information about the llvm-commits
mailing list