Some embodiments of the invention provide a method of routing nets in a region
of a design layout. The region contains a plurality of nets and has multiple interconnect
layers. The method identifies routes for a set of nets in the region, where some
of the routes utilize vias to traverse multiple interconnect layers. The method
then moves at least one via to improve the routing.