From c7b3b99f3101ba89ff6d5a5bb47388cfc59f17f6 Mon Sep 17 00:00:00 2001 From: Po-Chun Chang Date: Tue, 23 Jul 2013 15:56:37 +0000 Subject: reload.c (find_reloads): Exit loop once we find this operand cannot be reloaded somehow for this alternative. 2013-07-22 Po-Chun Chang * reload.c (find_reloads): Exit loop once we find this operand cannot be reloaded somehow for this alternative. * reload.c (find_reloads): Exit loop once we find a hard register. * rtlanal.c (computed_jump_p): Exit loop once we find label reference is used. * i386.c (ix86_pad_returns): Exit loop after setting replace. * cfgloopmanip.c (remove_path): Exit loop after setting irred_invalidated. * gensupport.c (subst_dup): Avoid loop if code is not MATCH_DUP nor MATCH_OP_DUP. From-SVN: r201174 --- gcc/rtlanal.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/rtlanal.c') diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 9567694..95a314f 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -2802,7 +2802,10 @@ computed_jump_p (const_rtx insn) if (GET_CODE (XVECEXP (pat, 0, i)) == USE && (GET_CODE (XEXP (XVECEXP (pat, 0, i), 0)) == LABEL_REF)) - has_use_labelref = 1; + { + has_use_labelref = 1; + break; + } if (! has_use_labelref) for (i = len - 1; i >= 0; i--) -- cgit v1.1