Implemented UnusedFunctionReturnParameterPruner

Optimization rule that rewrites functions whose return parameters are not used at callsite.
This commit is contained in:
hrkrshnn
2020-11-20 17:29:02 +01:00
parent 61069ec77d
commit 4553b8c0d5
7 changed files with 382 additions and 38 deletions
@@ -45,6 +45,7 @@ struct OptimiserSettings
"xarulrul" // Prune a bit more in SSA
"xarrcL" // Turn into SSA again and simplify
"gvif" // Run full inliner
"xaTPrci" // Prune unused return values and inline
"CTUcarrLsTOtfDncarrIulc" // SSA plus simplify
"]"
"jmuljuljul VcTOcul jmulN"; // Make source short and pretty