diff mbox

RFA: Store the REG_BR_PROB probability directly as an int

Message ID mvmeh8e363m.fsf@hawking.suse.de
State New
Headers show

Commit Message

Andreas Schwab Sept. 24, 2013, 9:46 a.m. UTC
Richard Sandiford <rdsandiford@googlemail.com> writes:

> REG_BR_PROB notes are stored as:
>
>   (expr_list:REG_BR_PROB (const_int <prob>) <chain>)
>
> but a full const_int rtx seems a bit heavweight when all we want is
> a plain "int".  This patch uses:
>
>   (int_list:REG_BR_PROB <prob> <chain>)
>
> instead.

I think you left out the handling of INT_LIST in eliminate_regs_1.  This
lets me finish the build:


Andreas.
diff mbox

Patch

diff --git a/gcc/reload1.c b/gcc/reload1.c
index 7a82c07..41f1aa8 100644
--- a/gcc/reload1.c
+++ b/gcc/reload1.c
@@ -2576,6 +2576,7 @@  eliminate_regs_1 (rtx x, enum machine_mode mem_mode, rtx insn,
     case ADDR_VEC:
     case ADDR_DIFF_VEC:
     case RETURN:
+    case INT_LIST:
       return x;
 
     case REG: