Update the legalization passes.
authorSteven Perron <stevenperron@google.com>
Tue, 19 Dec 2017 20:08:54 +0000 (15:08 -0500)
committerDavid Neto <dneto@google.com>
Wed, 20 Dec 2017 22:56:03 +0000 (17:56 -0500)
commit7505d2422551e5dbc2bf4e0ffccfdc5ca5ce1925
tree9da46712617b6d8ac459023d8bf64b5f420caa35
parentc9a881ecc6f304b586bf13f54a7cff7119b04070
Update the legalization passes.

Changes the set of optimizations done for legalization.  While doing
this, I added documentation to explain why we want each optimization.

A new option "--legalize-hlsl" is added so the legalization passes can
be easily run from the command line.
The legalize option implies skip-validation.
source/opt/optimizer.cpp
tools/opt/opt.cpp