llvm-project
4ca56e22 - [CodeGen] Defer pointer-auth check in getKindForGlobal (NFC) (#240045)

Commit
1 day ago
[CodeGen] Defer pointer-auth check in getKindForGlobal (NFC) (#240045) When deciding whether a constant global can go in a plain read-only section or needs dynamic fixups (.data.rel.ro), getKindForGlobal() scans the entire initializer for pointer-authentication constants first. Move that scan after the standard dynamic-relocation check so we don't walk large constant initializers that already need dynamic fixups anyway. Part of #236952. Assisted-by: Gemini
Author
Parents
Loading