[array-semantics] Teach array semantics to update the CallGraph when deleting instructions.

Swift SVN r26859
This commit is contained in:
Michael Gottesman
2015-04-02 05:01:09 +00:00
parent 8b36c031a2
commit b122c0da47
4 changed files with 62 additions and 37 deletions

View File

@@ -16,7 +16,9 @@
#include "swift/SIL/SILInstruction.h"
namespace swift {
class DominanceInfo;
class DominanceInfo;
class CallGraph;
/// The kind of array operation identified by looking at the semantics attribute
/// of the called function.
@@ -89,7 +91,9 @@ public:
/// Remove the semantics call replacing it by a release of any @owned
/// parameter.
void removeCall();
///
/// Updates the passed in callgraph.
void removeCall(CallGraph &CG);
/// Hoist the call to the insert point.
void hoist(SILInstruction *InsertBefore, DominanceInfo *DT) {