[llvm] [WIP][RFC] Teach MCA constant registers do not create dependencies (PR #89387)

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 19 09:19:36 PDT 2024


================
@@ -977,7 +977,8 @@ void RegisterInfoEmitter::runMCDesc(raw_ostream &OS, CodeGenTarget &Target,
        << DiffSeqs.get(SubRegLists[i]) << ", " << DiffSeqs.get(SuperRegLists[i])
        << ", " << SubRegIdxSeqs.get(SubRegIdxLists[i]) << ", "
        << (Offset << RegUnitBits | FirstRU) << ", "
-       << LaneMaskSeqs.get(RegUnitLaneMasks[i]) << " },\n";
+       << LaneMaskSeqs.get(RegUnitLaneMasks[i]) << ", " << Reg.Constant
----------------
mshockwave wrote:

We have some tests checking against the content of TableGen-ed register info under `test/TableGen`, you might want to double check if you need to update any of them.

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


More information about the llvm-commits mailing list