gcc: minor improvements to cost model