Skip to content

Commit 9fa0f23

Browse files
author
Evandro Menezes
committed
[PATCH] [Target] Test commit
Modify comment to reflect the current users of `Regisgter.CostPerUse`.
1 parent 596d061 commit 9fa0f23

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/include/llvm/Target/Target.td

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,9 @@ class Register<string n, list<string> altNames = []> {
166166
// CostPerUse - Additional cost of instructions using this register compared
167167
// to other registers in its class. The register allocator will try to
168168
// minimize the number of instructions using a register with a CostPerUse.
169-
// This is used by the x86-64 and ARM Thumb targets where some registers
170-
// require larger instruction encodings.
169+
// This is used by the ARC target, by the ARM Thumb and x86-64 targets, where
170+
// some registers require larger instruction encodings, by the RISC-V target,
171+
// where some registers preclude using some C instructions.
171172
int CostPerUse = 0;
172173

173174
// CoveredBySubRegs - When this bit is set, the value of this register is

0 commit comments

Comments
 (0)