-
Notifications
You must be signed in to change notification settings - Fork 13.6k
IR: Remove redundant UseList check in addUse #138676
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
IR: Remove redundant UseList check in addUse #138676
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
@llvm/pr-subscribers-llvm-ir Author: Matt Arsenault (arsenm) ChangesNot sure if this did anything for compile time or not. Full diff: https://github.com/llvm/llvm-project/pull/138676.diff 1 Files Affected:
diff --git a/llvm/include/llvm/IR/Value.h b/llvm/include/llvm/IR/Value.h
index ae874304c4316..3f94081d7b844 100644
--- a/llvm/include/llvm/IR/Value.h
+++ b/llvm/include/llvm/IR/Value.h
@@ -509,7 +509,7 @@ class Value {
/// This method should only be used by the Use class.
void addUse(Use &U) {
- if (UseList || hasUseList())
+ if (hasUseList())
U.addToList(&UseList);
}
|
936319a
to
5317c2e
Compare
247bcd6
to
09e9b5d
Compare
5317c2e
to
7c7350f
Compare
09e9b5d
to
53ee4a8
Compare
7c7350f
to
010c0ad
Compare
53ee4a8
to
dedd320
Compare
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.
LG
Depends on the parent, plus was hoping to run this through compile time tracker |
CTMark: https://llvm-compile-time-tracker.com/compare.php?from=a861f50030a9dac28a35654506bb28d2bc239b56&to=a33632206ab5e08caf9e243009f5911400441d01&stat=instructions:u |
Surprised it's slightly worse |
I think this may have been noise. I reran this and there are no differences over the significance threshold: https://llvm-compile-time-tracker.com/compare.php?from=6c1bb48cc45396894597c8cb897c31205d1bdeb6&to=1837fe71fcfb4363fd2b66cdb9ff6a82b3f380fb&stat=instructions:u |
010c0ad
to
dc6faab
Compare
Not sure if this did anything for compile time or not.
dedd320
to
1e68e5b
Compare
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/15420 Here is the relevant piece of the build log for the reference
|
Not sure if this did anything for compile time or not.