Guest User

Untitled

a guest
Jan 16th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. diff --git a/compiler/arm/aoptcpu.pas b/compiler/arm/aoptcpu.pas
  2. index 5724792..8ba2982 100644
  3. --- a/compiler/arm/aoptcpu.pas
  4. +++ b/compiler/arm/aoptcpu.pas
  5. @@ -1145,7 +1145,8 @@ Implementation
  6. to
  7. add reg2, ...
  8. }
  9. - if GetNextInstructionUsingReg(p, hp1, taicpu(p).oper[0]^.reg) then
  10. + if taicpu(p).opcode <> A_STR and
  11. + GetNextInstructionUsingReg(p, hp1, taicpu(p).oper[0]^.reg) then
  12. RemoveSuperfluousMove(p, hp1, 'DataMov2Data');
  13. end;
  14. A_CMP:
Add Comment
Please, Sign In to add comment