From 08b310380773ac0629e75d679a4b5e1e40871f20 Mon Sep 17 00:00:00 2001 From: jakub Date: Sat, 4 Feb 2012 12:47:55 +0000 Subject: PR rtl-optimization/52113 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized even for decomposable shift/zext insns. * gcc.target/avr/pr52113.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183894 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/lower-subreg.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gcc/lower-subreg.c') diff --git a/gcc/lower-subreg.c b/gcc/lower-subreg.c index 779cc5f40de..89f3044b7fe 100644 --- a/gcc/lower-subreg.c +++ b/gcc/lower-subreg.c @@ -1,5 +1,6 @@ /* Decompose multiword subregs. - Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012 + Free Software Foundation, Inc. Contributed by Richard Henderson Ian Lance Taylor @@ -1135,10 +1136,11 @@ decompose_multiword_subregs (void) || GET_CODE (PATTERN (insn)) == USE) continue; + recog_memoized (insn); + if (find_decomposable_shift_zext (insn)) continue; - recog_memoized (insn); extract_insn (insn); set = simple_move (insn); -- cgit v1.2.1