teach simplify-cfg to merge blocks connected by an uncond branch, when

the dest has no other predecessors.  This fires 6926 times on the stdlib.


Swift SVN r9794
This commit is contained in:
Chris Lattner
2013-10-30 16:48:59 +00:00
parent cb6cf87f1e
commit 03e7b756d0
5 changed files with 123 additions and 31 deletions

View File

@@ -121,6 +121,10 @@ public:
ArrayRef<SILArgument*> getBBArgs() const { return BBArgList; }
unsigned getNumBBArg() const { return BBArgList.size(); }
const SILArgument *getBBArg(unsigned i) const { return BBArgList[i]; }
SILArgument *getBBArg(unsigned i) { return BBArgList[i]; }
/// \brief Remove all block arguments.
void dropAllArgs() { BBArgList.clear(); }