pi benchmark on ldc and dmd

Walter Bright newshound2 at digitalmars.com
Tue Aug 2 18:45:04 PDT 2011


On 8/2/2011 3:23 PM, Trass3r wrote:
> Any reason for all those mov x,x 's?

No. They'll get removed shortly.

I see three problems with dmd's codegen here:

1. those redundant moves
2. failing to merge a couple divides
3. replacing a mul with an add/lea

I'll see about taking care of them. (2) is the most likely culprit on the speed.


More information about the Digitalmars-d mailing list