[llvm] [GlobalISel] Change MatchTable entries to 1 byte each (PR #74429)

Wang Pengcheng via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 20:23:55 PST 2023


================
@@ -1354,8 +1385,8 @@ bool GIMatchTableExecutor::executeMatchTable(
     }
 
     case GIR_MakeTempReg: {
-      int64_t TempRegID = MatchTable[CurrentIdx++];
-      int64_t TypeID = MatchTable[CurrentIdx++];
+      uint64_t TempRegID = nextULEB128();
+      int64_t TypeID = (int8_t)MatchTable[CurrentIdx++];
----------------
wangpc-pp wrote:

This casting is weird.

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


More information about the llvm-commits mailing list