[llvm] [llvm][AArch64] Autoupgrade function attributes from Module attributes. (PR #82763)

Daniel Kiss via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 14 16:06:28 PDT 2024


DanielKristofKiss wrote:

So with `llvm-lto` all modules moved into an empty temp module but with lld.ld a the mover is initialised with the real module which never goes thru the update ( since this upgrade is removed from the bitcode reader update path )
 
```c++
IRMover::IRMover( 
...
    for (const auto *MD : StructTypes.getVisitedMetadata()) {
     SharedMDs[MD].reset(const_cast<MDNode *>(MD));
   }
+
+  CopyModuleAttrToFunctions(M);
 }
 ```

after this the reproducer looks good.

https://github.com/llvm/llvm-project/pull/82763


More information about the llvm-commits mailing list