@User typically, you compare the schematic netlist which is created by the designer as spice or a structural verilog file from synthesis with an extracted netlist from the layout. This ensures that the layout correctly represents the initial netlist.
This gets complicated with physical synthesis though if you change sizes during layout, add buffers, etc.