Clarify that higher priority means higher values.
authorMatthias Braun <matze@braunis.de>
Tue, 31 Mar 2015 20:04:46 +0000 (20:04 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 31 Mar 2015 20:04:46 +0000 (20:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233744 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/Target.td
include/llvm/Target/TargetRegisterInfo.h

index d7356293a0f18d1e30f51211f0b2882caf07b75a..1ff8db8c2e68aaf994e0d0018bbe15717719801e 100644 (file)
@@ -209,9 +209,9 @@ class RegisterClass<string namespace, list<ValueType> regTypes, int alignment,
   code AltOrderSelect = [{}];
 
   // Specify allocation priority for register allocators using a greedy
-  // heuristic. Classes with high priority are assigned first. It is sometimes
-  // beneficial to assign registers to highly constrained classes first.
-  // The priority has to be in the range [0,63].
+  // heuristic. Classes with higher priority values are assigned first. This is
+  // useful as it is sometimes beneficial to assign registers to highly
+  // constrained classes first. The value has to be in the range [0,63].
   int AllocationPriority = 0;
 }
 
index 7752203b98b868d3baeb0afd1766e8b290d78eaf..121b8a232526fd692b6d88bb2172830ea0c75af7 100644 (file)
@@ -46,8 +46,8 @@ public:
   const uint32_t *SubClassMask;
   const uint16_t *SuperRegIndices;
   const unsigned LaneMask;
-  /// Classes with high priority should be assigned first by register allocators
-  /// with a greedy heuristic. The priority is a value in the range [0,63].
+  /// Classes with a higher priority value are assigned first by register
+  /// allocators using a greedy heuristic. The value is in the range [0,63].
   const uint8_t AllocationPriority;
   /// Whether the class supports two (or more) disjunct subregister indices.
   const bool HasDisjunctSubRegs;