[PATCH] Add a shrink-wrapping pass to improve the placement of prologue and epilogue.
kparzysz at codeaurora.org
Thu Apr 23 06:58:13 PDT 2015
One other concern I have is that the way PEI is implemented leaves little room for a target to decide what to do. With the shrink-wrapping in place, we either get none of it or all of it. For most applications on Hexagon, both code size and performance are important. The decision as to whether we want multiple prologs may be the result of an analysis of the entire function. As a matter of fact we may prefer to have a single prolog, but not in the entry block even if the shrink-wrap pass finds multiple locations.
More information about the llvm-commits