Integer specialisation of BitScanForwardNode

D.Sturm D.Sturm42 at gmail.com
Fri Oct 11 07:51:05 PDT 2013


BitScanForwardNode only has a single @NodeIntrinsic method that takes a
long. As a consequence when computing it for an int we first sign-extend it
to a long, e.g.:

cmp    edx,0x0
je     0x11
movsxd rax,edx
bsf    rax,rax


Could we introduce a new method taking an int to avoid this?


More information about the graal-dev mailing list