powerpc/bpf/jit: Optimize 64-bit Immediate loads
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Wed, 22 Jun 2016 16:25:03 +0000 (21:55 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 24 Jun 2016 05:15:04 +0000 (15:15 +1000)
commitb1a057879af03f6e3b1700c909a6d089e83d1254
treebe16878f5cdb461040d2d217dc1d0a88fcf6b2b0
parentaaf2f7e09932a08c1287d8e4c602bccbe98f60a6
powerpc/bpf/jit: Optimize 64-bit Immediate loads

Similar to the LI32() optimization, if the value can be represented
in 32-bits, use LI32(). Also handle loading a few specific forms of
immediate values in an optimum manner.

Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/net/bpf_jit.h