Depends on how long you want to wait for your compost. Sawdust from chainsaws is fairly coarse - more like fine chippings - and hard, and the breakdown action is more fungal than bacterial. It will probably take a year or more to break down properly, depending on the type of wood. If you use a shredder, put the sawdust with the shreddings, or failing that mix it with your leaves.
However, if you do want to compost it more quickly, it is best mixed with fresh grass mowings when the increased heat and moisture speed up the fungal processes.