[PATCH] D150651: Fix regression after D150436
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 16 05:05:32 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8a5450d322c0: Fix regression after D150436 (authored by XinWang10, committed by RKSimon).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150651/new/
https://reviews.llvm.org/D150651
Files:
llvm/utils/TableGen/AsmMatcherEmitter.cpp
Index: llvm/utils/TableGen/AsmMatcherEmitter.cpp
===================================================================
--- llvm/utils/TableGen/AsmMatcherEmitter.cpp
+++ llvm/utils/TableGen/AsmMatcherEmitter.cpp
@@ -636,7 +636,9 @@
// We use the ID to sort AVX instruction before AVX512 instruction in
// matching table.
if (TheDef->isSubClassOf("Instruction") &&
- TheDef->getValueAsBit("HasPositionOrder"))
+ TheDef->getValueAsBit("HasPositionOrder") &&
+ RHS.TheDef->isSubClassOf("Instruction") &&
+ RHS.TheDef->getValueAsBit("HasPositionOrder"))
return TheDef->getID() < RHS.TheDef->getID();
// Give matches that require more features higher precedence. This is useful
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150651.522552.patch
Type: text/x-patch
Size: 727 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230516/dfb1bda1/attachment.bin>
More information about the llvm-commits
mailing list