[llvm] [LiveIntervals] Ignore artificial regs when adding kill flags (PR #116963)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 4 08:57:31 PST 2024


================
@@ -659,3 +659,11 @@ bool MachineRegisterInfo::isReservedRegUnit(unsigned Unit) const {
   }
   return false;
 }
+
+bool MachineRegisterInfo::isArtificialRegUnit(unsigned Unit) const {
----------------
jayfoad wrote:

The set of reserved registers can be changed per function compiled so that needs to live in MRI. The artificial regs are a static property of the target so it can go in TRI.

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


More information about the llvm-commits mailing list