mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user