lima: ppir: various discard fixes
- Fix assert condition in ppir_codegen_encode_discard
- Fix branch codegen by correctly setting "next_length" field in branch instruction (branch has 2 of them: one when branch is taken and another when it's not)
Edited by Vasily Khoruzhick