Merge pull request #9691 from rdmarsh2/rdmarsh2/swift/ssa-perf-1

Swift: remove check for inout params in SSA gen
This commit is contained in:
Mathias Vorreiter Pedersen
2022-06-23 17:16:38 +01:00
committed by GitHub

View File

@@ -32,7 +32,6 @@ predicate variableWrite(BasicBlock bb, int i, SourceVariable v, boolean certain)
exists(CallExpr call, Argument arg |
arg.getExpr().(InOutExpr).getSubExpr() = v.getAnAccess() and
call.getAnArgument() = arg and
call.getStaticTarget().getParam(arg.getIndex()).isInout() and
bb.getNode(i).getNode().asAstNode() = call and
certain = false
)