-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[MCP] Use MCRegUnit as the key type of CopyTracker::Copies map. NFC. #98277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@llvm/pr-subscribers-llvm-regalloc Author: Kai Luo (bzEq) Changes
Full diff: https://github.com/llvm/llvm-project/pull/98277.diff 1 Files Affected:
diff --git a/llvm/lib/CodeGen/MachineCopyPropagation.cpp b/llvm/lib/CodeGen/MachineCopyPropagation.cpp
index bdc17e99d1fb0..6adec4adf6c2d 100644
--- a/llvm/lib/CodeGen/MachineCopyPropagation.cpp
+++ b/llvm/lib/CodeGen/MachineCopyPropagation.cpp
@@ -112,7 +112,7 @@ class CopyTracker {
bool Avail;
};
- DenseMap<MCRegister, CopyInfo> Copies;
+ DenseMap<MCRegUnit, CopyInfo> Copies;
public:
/// Mark all of the given registers and their subregisters as unavailable for
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even though it has worked with MCRegister
it is better to have the correct type. The changes look good to me. I don't know if my approval is enough or we should also wait for an approval from @qcolombet .
Thanks for quick review, I'll leave it open for a couple of days. |
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/33/builds/432 Here is the relevant piece of the build log for the reference:
|
…lvm#98277) `CopyTracker` is in fact tracking at RegUnit level, not MCRegister.
CopyTracker
is in fact tracking at RegUnit level, not MCRegister.