[all-commits] [llvm/llvm-project] 6ae658: [CodeGen] Finish untangling LRE::scanRemattable [n...
Philip Reames via All-commits
all-commits at lists.llvm.org
Tue Oct 7 07:20:21 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6ae658308919e1c01cb4221f8cd07365c7ce6fc2
https://github.com/llvm/llvm-project/commit/6ae658308919e1c01cb4221f8cd07365c7ce6fc2
Author: Philip Reames <preames at rivosinc.com>
Date: 2025-10-07 (Tue, 07 Oct 2025)
Changed paths:
M llvm/include/llvm/CodeGen/LiveRangeEdit.h
M llvm/lib/CodeGen/InlineSpiller.cpp
M llvm/lib/CodeGen/LiveRangeEdit.cpp
M llvm/lib/CodeGen/SplitKit.cpp
Log Message:
-----------
[CodeGen] Finish untangling LRE::scanRemattable [nfc] (#161963)
This is an attempt to simplify the rematerialization logic in
InlineSpiller and SplitKit. I'd earlier done the same for
RegisterCoalescer in 57b673.
The basic idea of this change is that we don't need to check whether an
instruction is rematerializable early. Instead, we can defer the check
to the point where we're actually trying to materialize something. We
also don't need to indirect that query through a VNI key, and can
instead just check the instruction directly at the use site.
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