From 9fa0f236d5011630932e8358e45f81cd21861911 Mon Sep 17 00:00:00 2001 From: Evandro Menezes Date: Fri, 24 Jan 2020 13:34:41 -0800 Subject: [PATCH] [PATCH] [Target] Test commit Modify comment to reflect the current users of `Regisgter.CostPerUse`. --- llvm/include/llvm/Target/Target.td | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Target/Target.td b/llvm/include/llvm/Target/Target.td index cdc9b640e74..eda08bb28d4 100644 --- a/llvm/include/llvm/Target/Target.td +++ b/llvm/include/llvm/Target/Target.td @@ -166,8 +166,9 @@ class Register altNames = []> { // CostPerUse - Additional cost of instructions using this register compared // to other registers in its class. The register allocator will try to // minimize the number of instructions using a register with a CostPerUse. - // This is used by the x86-64 and ARM Thumb targets where some registers - // require larger instruction encodings. + // This is used by the ARC target, by the ARM Thumb and x86-64 targets, where + // some registers require larger instruction encodings, by the RISC-V target, + // where some registers preclude using some C instructions. int CostPerUse = 0; // CoveredBySubRegs - When this bit is set, the value of this register is -- 2.11.0