warp
warp copied to clipboard
Excess functions
The purpose of this pass is to find functions like the following and remove them as a way to optimize the code:
function foo(uint a) returns (uint) {
return a;
}
If these functions are not externally visible, it is possible to remove them and replace the calls to that function with the expression it returns, tidying up the references of course.
This pass also recognizes functions of this type that return more than one argument in the form of a TupleExpression, even if the identifiers are not in the same order as the function parameters.
Sem tests running
Sem test pass. Just waiting for deleted block to be added back
Sem Tests passed with new commits