aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party
diff options
context:
space:
mode:
authorGravatar Jacques Pienaar <jpienaar@google.com>2018-09-05 06:07:52 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-09-05 06:12:27 -0700
commitffaab58cad72e177ada0e7d1d3724de63032928d (patch)
tree382fe0b9dbc05d17f4d70984971db49f7bf38457 /third_party
parent858f4672e25825bc5e091a79fd4234f1968a278d (diff)
Simplify analysis in funcitonalize_cond by splitting CondState.
* Split CondState into CondState (which corresponds to scope previously) and AncestorState (which tracks which switch/merge nodes are an ancestor of a ndoe). Previously CondState tracked both but that resulted in difficult to follow meet rules. Instead by splitting these out the meet for merge and non-merge are straight forward set operations. The ancestor relation is similarly easy to compute along with CondState computation. * Enhance the redundant switch checking: previously we only considered the predicates but %s=switch(val=%P, pred=switch(%P_1, %P):then) is also redundant as if %P is true then %s:else is dead. * Enhance in-edge testing to insert a switch if a value from an outer context is consumed inside an inner context. * Rename CondStateMap to StateMap to match new usage. PiperOrigin-RevId: 211622021
Diffstat (limited to 'third_party')
0 files changed, 0 insertions, 0 deletions