diff mbox

[i386] : Use REGNO instead of true_regnum in print_reg

Message ID CAFULd4atbtd+ocEAJ8PF5vgGPf1uqxLineLv1XCXE8nsLRyPsg@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak Jan. 28, 2017, 6:48 p.m. UTC
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  <ubizjak@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.
diff mbox

Patch

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