This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Use string comparison for ArchInfo equality
ClosedPublic

Authored by tmatheson on Dec 4 2022, 12:32 PM.

Details

Summary

Tests are failing with LLVM_LINK_LLVM_DYLIB because copies of ArchInfo are
being created somehow, so using address for comparison is failing. Change
to use string comparison based on the name until I can figure out what the
issue with address comparison is.

Diff Detail

Event Timeline

tmatheson created this revision.Dec 4 2022, 12:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 4 2022, 12:32 PM
tmatheson requested review of this revision.Dec 4 2022, 12:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 4 2022, 12:32 PM

I can confirm it solves the failing tests I'm seeing with LLVM_LINK_LLVM_DYLIB, but I'm not versed in this part of the code or the recent changes.

mgorny accepted this revision.Dec 4 2022, 10:13 PM

Well, it fixes the problem for me as well. I don't know the code but FWICS you've added the original assumption, so I guess you know best.

My personal preference would be to revert the change and combine this into the original patch but I'm happy with whatever fixes the problem.

This revision is now accepted and ready to land.Dec 4 2022, 10:13 PM