freedreno/ir3: improve handling of aliased inputs