[all-commits] [llvm/llvm-project] fd259a: [IR] Preserve !invariant.group in copyMetadataForL...
Justin Lebar via All-commits
all-commits at lists.llvm.org
Fri Jun 5 06:03:53 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fd259a565c444ebcdbafcc43da48479f935a755d
https://github.com/llvm/llvm-project/commit/fd259a565c444ebcdbafcc43da48479f935a755d
Author: Justin Lebar <justin.lebar at gmail.com>
Date: 2026-06-05 (Fri, 05 Jun 2026)
Changed paths:
M llvm/lib/Transforms/Utils/Local.cpp
M llvm/test/Transforms/InstCombine/invariant.group.ll
Log Message:
-----------
[IR] Preserve !invariant.group in copyMetadataForLoad (#200535)
copyMetadataForLoad is supposed to be used when only changing a load's
type. If we're only changing the type (and not the SSA value of the
loaded pointer) then we can preserve invariant.group.
All callers of this function indeed either (a) leave the pointer SSA
value unchanged, or (b) change *all* pointers in the group from one
value to another (which is also safe).
This bug was found by a large run of Opus 4.7 looking for bugs in LLVM.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list