[llvm] [X86][tablgen] Auto-gen broadcast tables (PR #73654)

Shengchen Kan via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 30 05:17:32 PST 2023


================
@@ -508,19 +610,28 @@ void X86FoldTablesEmitter::updateTables(const CodeGenInstruction *RegInst,
           isMemoryOperand(MemOpRec)) {
         switch (I) {
         case 0:
+          assert(!IsBroadcast && "BroadcastTable0 needs to be added");
----------------
KanRobert wrote:

Nothing. We do not add BroadcastTable0 just b/c it's empty now. If there is an entry should be in BroadcastTable0 one day, the assertion will fail and tell us to add the table.

https://github.com/llvm/llvm-project/pull/73654


More information about the llvm-commits mailing list