llvm-project
af83e280 - [LoopInterchange] Drop loop metadata and branch weights of interchanged loops

Commit
24 days ago
[LoopInterchange] Drop loop metadata and branch weights of interchanged loops This patch drops the loop metadata and the branch weights of the latches when interchanging loops. As for the loop metadata, some attributes may no longer hold after interchange (e.g., parallel_accesses of the inner loop), and its semantics are partially ambiguous (e.g., what should we do with unroll_and_jam?), so it is conservatively removed for now. As for the branch weights, I believe we don't need to drop them unconditionally, but they are also conservatively removed (or marked as unknown if the function has profile data) for now. Moving them to the appropriate place is left as future work. Note: I'm not entirely sure that dropping these is sufficient. Please let me know if there are other kinds of data that should be dropped when interchanging loops. Part of #235496 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
Committer
Parents
Loading