* disabled the lea->add transformation added in r25907 because it breaks

webtbs/tw15694.pp. Such transformation require liveness analysis of
    the flags

git-svn-id: trunk@26001 -
This commit is contained in:
Jonas Maebe 2013-11-09 18:42:23 +00:00
parent 22236de331
commit 0302453912

View File

@ -1087,6 +1087,14 @@ begin
end;
end;
end
(*
This is unsafe, lea doesn't modify the flags but "add"
does. This breaks webtbs/tw15694.pp. The above
transformations are also unsafe, but they don't seem to
be triggered by code that FPC generators (or that at
least does not occur in the tests...). This needs to be
fixed by checking for the liveness of the flags register.
else if MatchReference(taicpu(p).oper[0]^.ref^,taicpu(p).oper[1]^.reg,NR_INVALID) then
begin
hp1:=taicpu.op_reg_reg(A_ADD,S_L,taicpu(p).oper[0]^.ref^.index,
@ -1107,6 +1115,7 @@ begin
p:=hp1;
continue;
end
*)
end;
A_MOV:
begin