Add optional graph dump before each compiler phase.

--HG--
extra : rebase_source : 165762c0116bda3a99defd03e88c3fea3542dd29