-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[ExecutionEngine] Avoid repeated hash lookups (NFC) #132587
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
[ExecutionEngine] Avoid repeated hash lookups (NFC) #132587
Conversation
This reverts commit 0b181de.
Reverts #132587 Due to causing test failures on several of Linaro's buildbots. Several MLIR test failures and at least one test timing out. I doubt it's the patch itself, but instead an issue it has uncovered. Revert while we dig into that.
I've reverted this sooner than we might normally do, because it's intended to be a performance improvement so it's a clean revert. Going to get you details of the test failures... |
A normal AArch64 build: https://lab.llvm.org/buildbot/#/builders/84/builds/1436
Both got hit which means this isn't SVE specific. Lots of MLIR failures, that use And explains why no other platform had this problem. |
@@ -1515,15 +1515,15 @@ void RuntimeDyldELF::resolveAArch64Branch(unsigned SectionID, | |||
uint64_t Offset = RelI->getOffset(); | |||
unsigned RelType = RelI->getType(); | |||
// Look for an existing stub. | |||
StubMap::const_iterator i = Stubs.find(Value); | |||
if (i != Stubs.end()) { | |||
auto [It, Inserted] = Stubs.try_emplace(Value); |
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.
I think the problem here is that before, we only added an entry to the map if resolveAArch64ShortBranch returned false. Now, it could return true and it's too late, we already added the entry to the map.
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.
@DavidSpickett Ah, I see. Without this patch, we sometimes don't insert a new entry depending on the outcome of resolveAArch64ShortBranch
.
Thanks for the revert!
@kazutakahirata , I think this would reproduce by doing |
…)" (#133101) Reverts llvm/llvm-project#132587 Due to causing test failures on several of Linaro's buildbots. Several MLIR test failures and at least one test timing out. I doubt it's the patch itself, but instead an issue it has uncovered. Revert while we dig into that.
No description provided.