compiler: optimize empty tree mangling to ast.Pass