RE: [PATCH v2 bpf-next 1/4] bpf: Propagate scalar ranges through register assignments.

2020-10-09 Thread John Fastabend
Alexei Starovoitov wrote: > From: Alexei Starovoitov > > The llvm register allocator may use two different registers representing the > same virtual register. In such case the following pattern can be observed: > 1047: (bf) r9 = r6 > 1048: (a5) if r6 < 0x1000 goto pc+1 > 1050: ... > 1051: (a5) if

[PATCH v2 bpf-next 1/4] bpf: Propagate scalar ranges through register assignments.

2020-10-08 Thread Alexei Starovoitov
From: Alexei Starovoitov The llvm register allocator may use two different registers representing the same virtual register. In such case the following pattern can be observed: 1047: (bf) r9 = r6 1048: (a5) if r6 < 0x1000 goto pc+1 1050: ... 1051: (a5) if r9 < 0x2 goto pc+66 1052: ... 1053: (bf)