TI recommends to place all components as close as possible to the IC. Specially, the input capacitor placement must be closest to the PVIN and PGND pins of the device.
The low side of the input and output capacitors must be connected directly to the PGND pin to avoid a ground potential shift.
Use wide and short traces for the main current paths to reduce the parasitic inductance and resistance.
The sense trace connected to VOS pin is a signal trace. Special care should be taken to avoid noise being induced. Keep the trace away from SW nodes.
Refer to Figure 25 for an example of component placement, routing and thermal design.