]> git.ipfire.org Git - thirdparty/gcc.git/commit
compiler: do simple deadcode elimination
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Jun 2019 13:40:26 +0000 (13:40 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Jun 2019 13:40:26 +0000 (13:40 +0000)
commitac7ef97d772897518b00559ebf4a1c3dd0cae3b5
tree41e7bd6de969ae9edea1bea87de7ab39d4829475
parentbb20df3aaa8cba1fac829ee3a67cf199f7368987
compiler: do simple deadcode elimination

    Normally the backend will do deadcode elimination and this is
    sufficient. However, the escape analysis operates on the AST that
    may have deadcode, and may cause things to escape that otherwise
    do not.

    This CL adds a simple deadcode elimination, run before the escape
    analysis.

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/181080

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@272043 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/expressions.h
gcc/go/gofrontend/go.cc
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/statements.h