Descriptioncmd/8g: roll back the small integer constant optimizations introduced
in 13416:67c0b8c8fb29 "faster code, mainly for rotate" [1]. The codegen
can run out of registers if there are too many small-int arithmetic ops.
An alternative approach is to copy 6g's sbop/abop codegen to 8g, but
this change is less risky.
Fixes issue 3835.
[1] http://code.google.com/p/go/source/diff?spec=svn67c0b8c8fb29b1b7b6221977af6b89cae787b941&name=67c0b8c8fb29&r=67c0b8c8fb29b1b7b6221977af6b89cae787b941&format=side&path=/src/cmd/8g/cgen.c
Patch Set 1 #Patch Set 2 : diff -r b83f2b90ccfa https://code.google.com/p/go #Patch Set 3 : diff -r b83f2b90ccfa https://code.google.com/p/go #Patch Set 4 : diff -r 7611538f2e4a https://code.google.com/p/go #
MessagesTotal messages: 8
|