From fcb8e42940fd1ed8bb2ac449fe3cf08d9266e8f9 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Thu, 2 Apr 2015 19:33:22 +0200 Subject: [PATCH] i386.c (ix86_register_priority): Use AX_REG. * config/i386/i386.c (ix86_register_priority): Use AX_REG. From-SVN: r221844 --- gcc/ChangeLog | 4 ++++ gcc/config/i386/i386.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8e4ca6510ae..59dbeec7033 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-04-02 Uros Bizjak + + * config/i386/i386.c (ix86_register_priority): Use AX_REG. + 2015-04-02 Uros Bizjak Revert parts of r216820. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 744642c7e36..d8d9983009d 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -41256,7 +41256,7 @@ ix86_register_priority (int hard_regno) if (FIRST_REX_SSE_REG <= hard_regno && hard_regno <= LAST_REX_SSE_REG) return 2; /* Usage of AX register results in smaller code. Prefer it. */ - if (hard_regno == 0) + if (hard_regno == AX_REG) return 4; return 3; } -- 2.30.2