Patchwork [i386] : Use ANY_QI_REGNO_P in ix86_hard_regno_mode_ok QImode checks.

login
register
mail settings
Submitter Uros Bizjak
Date April 12, 2013, 6:26 p.m.
Message ID <CAFULd4a4rQmmtiaaFdu1_KWXhNWbFAMWbyawv5j-esO8VtcwRw@mail.gmail.com>
Download mbox | patch
Permalink /patch/236171/
State New
Headers show

Comments

Uros Bizjak - April 12, 2013, 6:26 p.m.
Hello!

2013-04-12  Uros Bizjak  <ubizjak@gmail.com>

    * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
    QImode checks.

There is no functional change, but the function is now slightly more readable.

Tested on x86_64-pc-linux-gnu {,-m32} and committed to mainline SVN.

Uros.

Patch

Index: i386.c
===================================================================
--- i386.c	(revision 197931)
+++ i386.c	(working copy)
@@ -33972,7 +33972,7 @@ 
     {
       /* Take care for QImode values - they can be in non-QI regs,
 	 but then they do cause partial register stalls.  */
-      if (TARGET_64BIT || QI_REGNO_P (regno))
+      if (ANY_QI_REGNO_P (regno))
 	return true;
       if (!TARGET_PARTIAL_REG_STALL)
 	return true;