Using true_regnum to determine register number at insn output time is
just giant waste of cycles. For sure, we have only hard regs here.

2017-01-27  Uros Bizjak  <ubiz...@gmail.com>

    * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.

Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.

Committed to mainline SVN as obvious one-liner.

Uros.
Index: config/i386/i386.c
===================================================================
--- config/i386/i386.c  (revision 245003)
+++ config/i386/i386.c  (working copy)
@@ -17592,7 +17592,7 @@ print_reg (rtx x, int code, FILE *file)
   else
     msize = GET_MODE_SIZE (GET_MODE (x));
 
-  regno = true_regnum (x);
+  regno = REGNO (x);
 
   gcc_assert (regno != ARG_POINTER_REGNUM
              && regno != FRAME_POINTER_REGNUM

Reply via email to