llc_input: simplify code using existing functions