packet-transactions / domino-compiler

The Domino compiler to run packet programs on pipelined switches
29 stars 7 forks source link

Implement dead-code removal #57

Open anirudhSK opened 9 years ago

anirudhSK commented 9 years ago

There's quite a bit of these after the current optimization passes (expression propagation and such). As an example, consider running jayhawk on the flowlet switching example on domino as of f9b69c80b8c348dc1d5469c8015df8def16d113b

anirudhSK commented 9 years ago

Also remove code that is not subsequently used such as a temporary variable that is set in the last stage, but doesn't correspond one-to-one to any variable in the original program. It's going to be harder to detect this though.