bpf: J*_RR should check both operands
There is a mistake in current code that we "break" out the optimization when the first operand of J*_RR doesn't qualify the elimination. This caused some elimination opportunities missed, for example the one in the testcase. The code should just fall through to handle the second operand. Signed-off-by:Jiong Wang <jiong.wang@netronome.com> Signed-off-by:
Yonghong Song <yhs@fb.com> llvm-svn: 327366
Loading
Please register or sign in to comment