Update legalization passes
authorSteven Perron <stevenperron@google.com>
Wed, 3 Jan 2018 19:03:07 +0000 (14:03 -0500)
committerSteven Perron <stevenperron@google.com>
Thu, 4 Jan 2018 16:04:49 +0000 (11:04 -0500)
commit7834beea8017ed2db866227972539fb53ef81362
tree1ca0525654e33de483dad1a1c4143c0bb70415a3
parente8f2890c302be2da1b3413e742dda52b9c18da7e
Update legalization passes

I've a few passes the legalization passes.  The first is to add the
more specialized load-store removal passes to help improve the compile
time, as was suggested in #1118.

I've also added dead branch elimination while we wait for the behaviour
of dead branch elimination to be folded into CFG cleanup.

I did not add CCP because it seems like most of the constant propagation
what is needed is already being done by the load-store removal passes,
which call `ReplaceAllUsesWith`.  We can reconsider this if needed.
source/opt/optimizer.cpp