Skip to content

Commit 5338a91

Browse files
Fixed optimization under 6809.
1 parent 49603fc commit 5338a91

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ugbc/src/targets/d32/_optimizer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,7 @@ static void basic_peephole(Environment * _environment, POBuffer buf[LOOK_AHEAD],
892892

893893
if( po_buf_match(buf[0], " LDB *", v1)
894894
&& po_buf_match(buf[1], " LDB *", v2)
895+
&& strstr( v2->str, "," ) == NULL
895896
) {
896897
optim(buf[0], RULE "(LDB,LDB)->(LDB)", NULL );
897898
++_environment->removedAssemblyLines;

0 commit comments

Comments
 (0)