tv: Let sc_comp() return an ir_relation instead of magic numbers.