mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-10-31 12:11:34 +01:00 
			
		
		
		
	* don't do x*x -> sqr(x) optmization for arm softfloat
git-svn-id: trunk@19193 -
This commit is contained in:
		
							parent
							
								
									f0c8563f2d
								
							
						
					
					
						commit
						bba726ae78
					
				| @ -859,7 +859,11 @@ implementation | |||||||
| 
 | 
 | ||||||
|             { using sqr(x) for reals instead of x*x might reduces register pressure and/or |             { using sqr(x) for reals instead of x*x might reduces register pressure and/or | ||||||
|               memory accesses while sqr(<real>) has no drawback } |               memory accesses while sqr(<real>) has no drawback } | ||||||
|             if (nodetype=muln) and |             if | ||||||
|  | {$ifdef ARM} | ||||||
|  |                (current_settings.fputype<>fpu_soft) and | ||||||
|  | {$endif ARM} | ||||||
|  |                (nodetype=muln) and | ||||||
|                is_real(left.resultdef) and is_real(right.resultdef) and |                is_real(left.resultdef) and is_real(right.resultdef) and | ||||||
|                left.isequal(right) and |                left.isequal(right) and | ||||||
|                not(might_have_sideeffects(left)) then |                not(might_have_sideeffects(left)) then | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 florian
						florian