This is an archive of the discontinued LLVM Phabricator instance.

Fix regression after D150436
ClosedPublic

Authored by XinWang10 on May 16 2023, 2:35 AM.

Details

Summary

llvm-clang-x86_64-expensive-checks-debian will fail after D150436 merged.
The fail occurred in X86, I changed the sort rule in AsmMatcher in Patch D150436, so x86 code will arrive line 633 first(will not affect other targets).
The logic here want to use the order record written in source file to make AsmMatcher to first use AVX instructions, it used field HasPositionOrder.
But the condition here just makes sure one of the compared record is subclass of Instruction and has field HasPositionOrder true, and didn't check another.

Diff Detail

Event Timeline

XinWang10 created this revision.May 16 2023, 2:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 16 2023, 2:35 AM
XinWang10 requested review of this revision.May 16 2023, 2:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 16 2023, 2:35 AM
XinWang10 edited the summary of this revision. (Show Details)May 16 2023, 2:43 AM
XinWang10 edited the summary of this revision. (Show Details)May 16 2023, 2:43 AM
XinWang10 added reviewers: skan, LuoYuanke.
skan accepted this revision.May 16 2023, 2:47 AM

LGTM

This revision is now accepted and ready to land.May 16 2023, 2:47 AM
RKSimon accepted this revision.May 16 2023, 4:18 AM
RKSimon added a subscriber: RKSimon.

Confirmed this fixes my broken EXPENSIVE_CHECKS builds

aaron.ballman accepted this revision.May 16 2023, 5:02 AM
aaron.ballman added a subscriber: aaron.ballman.

We should land this sooner rather than later, llvm-tblgen currently crashes on stock debug builds with MSVC because of their checked iterators (so this doesn't require an expensive checks build to reproduce) -- we *really* need a post-commit CI bot with that functionality enabled.

This revision was landed with ongoing or failed builds.May 16 2023, 5:05 AM
Closed by commit rG8a5450d322c0: Fix regression after D150436 (authored by XinWang10, committed by RKSimon). · Explain Why
This revision was automatically updated to reflect the committed changes.