From: Richard Kenner Date: Mon, 16 May 1994 20:21:39 +0000 (-0400) Subject: (try_pre_increment_1): Don't try to create a pre-increment expression X-Git-Tag: misc/cutover-egcs-0~6635 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89861c38672f0615c9c2c104327a428fb6a997f6;p=thirdparty%2Fgcc.git (try_pre_increment_1): Don't try to create a pre-increment expression if the register dies in the succeeding insn. From-SVN: r7308 --- diff --git a/gcc/flow.c b/gcc/flow.c index 71d15ad7014f..448608cdc52a 100644 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -2516,6 +2516,9 @@ try_pre_increment_1 (insn) rtx y = reg_next_use[regno]; if (y != 0 && BLOCK_NUM (y) == BLOCK_NUM (insn) + /* Don't do this if the reg dies, or gets set in y; a standard addressing + mode would be better. */ + && ! dead_or_set_p (y, SET_DEST (x)) && try_pre_increment (y, SET_DEST (PATTERN (insn)), amount)) {