[i386] : Use ANY_QI_REGNO_P in ix86_hard_regno_mode_ok QImode checks.

Submitted by Uros Bizjak on April 12, 2013, 6:26 p.m.


Message ID CAFULd4a4rQmmtiaaFdu1_KWXhNWbFAMWbyawv5j-esO8VtcwRw@mail.gmail.com
State New
Headers show

Commit Message

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

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.


Patch hide | download patch | download mbox

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;
 	return true;