gcc: improve cost model