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

Rin Dobrescu via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 22 01:22:16 PDT 2024


================
@@ -382,6 +385,10 @@ class MCRegisterInfo {
     return RegStrings + get(RegNo).Name;
   }
 
+  bool isConstant(MCRegister RegNo) const {
+    return get(RegNo).Constant && MCRegister::isPhysicalRegister(RegNo.id());
----------------
Rin18 wrote:

Yes, you're right. I added this while I was testing things, my bad for forgetting to remove this check.

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


More information about the llvm-commits mailing list