[fpc-devel] The 15k bounty: Optimizing executable speed forLinux x86 / LLVM

J. Gareth Moreton gareth at moreton-family.com
Tue Dec 4 01:24:01 CET 2018


 A regression like this is quite serious.  I'd recommend opening a bug
report with a reproducible case so we can investigate and hopefully fix it
within the day.
 At the moment I'm experimenting with increasing the speed of the optimizer
for x86_64, and then porting to i386 when it's proven successful.  Having
teething problems though!

 Gareth

 On Tue 04/12/18 01:16 , Simon Kissel simon.kissel at nerdherrschaft.com sent:
 Hi Florian, 

 we are currently to try to do some real-life benchmarks with our 
 products, however with rev. 40346 compilation fails with the two following

 showstoppers: 

 1.) 

 The assembler parser appears to be broken - the following very valid 
 opcodes get rejected: 

 SBMath.pas(1932,9) Error: Asm: [cmp imm32,imm8s] invalid combination of
opcode and operands 
 SBMath.pas(1934,5) Error: Asm: [lea reg32,imm32] invalid combination of
opcode and operands 
 SBMath.pas(1939,9) Error: Asm: [cmp imm32,imm8s] invalid combination of
opcode and operands 
 SBMath.pas(1941,5) Error: Asm: [lea reg32,imm32] invalid combination of
opcode and operands 
 SBMath.pas(1946,9) Error: Asm: [cmp imm32,imm8s] invalid combination of
opcode and operands 
 SBMath.pas(1948,5) Error: Asm: [lea reg32,imm32] invalid combination of
opcode and operands 
 SBMath.pas(1953,3) Error: Asm: [lea reg32,imm32] invalid combination of
opcode and operands 
 SBMath.pas(1954,3) Error: Asm: [lea reg32,imm32] invalid combination of
opcode and operands 
 SBMath.pas(1955,3) Error: Asm: [lea reg32,imm32] invalid combination of
opcode and operands 
 SBMath.pas(1972,3) Error: Asm: [lea reg32,imm32] invalid combination of
opcode and operands 
 SBMath.pas(1976,5) Error: Asm: [lea reg32,imm32] invalid combination of
opcode and operands 
 SBMath.pas(1981,5) Error: Asm: [lea reg32,imm32] invalid combination of
opcode and operands 
 SBMath.pas(1982,5) Error: Asm: [lea reg32,imm32] invalid combination of
opcode and operands 

 (-Tlinux -XPi386-linux- -CpPENTIUMM -O2 -OoCSE -CfSSE2 -Ooorderfields) 

 2.) 

 On ARM, I get Internal error 200603253 at various places: 

 SBMath.pas(1989,1) Fatal: Internal error 200603253 
 (sadly the line numbers are complete off for unknown reasons, so I can 
 not find the actual source line causing this) 

 But also happens at various other places. Most easy to reproduce by 
 compiling PasZLib-SG (e.g. https://github.com/Soldat/PasZlib-SG [1]). 

 Any clues? 

 BR, 

 Simon 

 _______________________________________________ 
 fpc-devel maillist - fpc-devel at lists.freepascal.org [2] 
 http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
[3]">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel 

 

Links:
------
[1] https://github.com/Soldat/PasZlib-SG
[2] mailto:fpc-devel at lists.freepascal.org
[3] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20181204/e65aa82c/attachment.html>


More information about the fpc-devel mailing list