mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 08:19:36 +01:00 
			
		
		
		
	* patch by Christo Crause: Fix missed optimization opportunities, resolves #38285
git-svn-id: trunk@47925 -
(cherry picked from commit 3482121831)
			
			
This commit is contained in:
		
							parent
							
								
									d75fb82753
								
							
						
					
					
						commit
						99588969b9
					
				@ -416,7 +416,7 @@ Implementation
 | 
			
		||||
 | 
			
		||||
                            DebugMsg('Peephole LdiMov/Cp2Ldi/Cpi performed', p);
 | 
			
		||||
 | 
			
		||||
                            RemoveCurrentP(p);
 | 
			
		||||
                            result:=RemoveCurrentP(p);
 | 
			
		||||
                          end;
 | 
			
		||||
                        ReleaseUsedRegs(TmpUsedRegs);
 | 
			
		||||
                      end;
 | 
			
		||||
@ -441,6 +441,7 @@ Implementation
 | 
			
		||||
                        taicpu(p).loadconst(0,taicpu(p).oper[0]^.ref^.offset)
 | 
			
		||||
                      else
 | 
			
		||||
                        taicpu(p).loadconst(0,taicpu(p).oper[0]^.ref^.offset-32);
 | 
			
		||||
                      result:=true;
 | 
			
		||||
                    end;
 | 
			
		||||
                A_LDS:
 | 
			
		||||
                  if (taicpu(p).oper[1]^.ref^.symbol=nil) and
 | 
			
		||||
@ -462,6 +463,8 @@ Implementation
 | 
			
		||||
                        taicpu(p).loadconst(1,taicpu(p).oper[1]^.ref^.offset)
 | 
			
		||||
                      else
 | 
			
		||||
                        taicpu(p).loadconst(1,taicpu(p).oper[1]^.ref^.offset-32);
 | 
			
		||||
 | 
			
		||||
                      result:=true;
 | 
			
		||||
                    end;
 | 
			
		||||
                A_IN:
 | 
			
		||||
                    if GetNextInstruction(p,hp1) then
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user