From: uz Date: Wed, 30 Sep 2009 14:52:46 +0000 (+0000) Subject: Another small change in OptJumpTarget3. X-Git-Tag: V2.13.0rc2~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9ba5252a01703566565f817278c023fe2a4134f3;p=cc65 Another small change in OptJumpTarget3. git-svn-id: svn://svn.cc65.org/cc65/trunk@4281 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/coptind.c b/src/cc65/coptind.c index de3f67b46..1f788aac4 100644 --- a/src/cc65/coptind.c +++ b/src/cc65/coptind.c @@ -773,12 +773,14 @@ unsigned OptJumpTarget3 (CodeSeg* S) /* Get next entry */ CodeEntry* E = CS_GetEntry (S, I); - /* Check if this is a load insn with a label */ + /* Check if this is a load insn with a label and the next insn is not + * a conditional branch that needs the flags from the load. + */ if ((E->Info & OF_LOAD) != 0 && CE_IsConstImm (E) && CE_HasLabel (E) && (N = CS_GetNextEntry (S, I)) != 0 && - (N->Info & OF_FBRA) == 0) { + !CE_UseLoadFlags (N)) { /* Walk over all insn that jump here */ for (J = 0; J < CE_GetLabelCount (E); ++J) {