public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, i386]: Use ANY_QI_REGNO_P in ix86_hard_regno_mode_ok QImode checks.
@ 2013-04-12 23:34 Uros Bizjak
  0 siblings, 0 replies; only message in thread
From: Uros Bizjak @ 2013-04-12 23:34 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 304 bytes --]

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.

[-- Attachment #2: p.diff.txt --]
[-- Type: text/plain, Size: 441 bytes --]

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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-04-12 18:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-12 23:34 [PATCH, i386]: Use ANY_QI_REGNO_P in ix86_hard_regno_mode_ok QImode checks Uros Bizjak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).