C++: Better join order for reachesWithoutAssignment.

This commit is contained in:
Geoffrey White
2022-04-12 17:33:40 +01:00
parent ccd7bb5e70
commit cdce72b87c

View File

@@ -549,7 +549,7 @@ module FlowVar_internal {
bb = this.(Loop).getStmt() and bb = this.(Loop).getStmt() and
v = this.getARelevantVariable() v = this.getARelevantVariable()
or or
this.reachesWithoutAssignment(bb.getAPredecessor(), v) and this.reachesWithoutAssignment(pragma[only_bind_out](bb.getAPredecessor()), v) and
this.bbInLoop(bb) this.bbInLoop(bb)
) and ) and
not assignsToVar(bb, v) not assignsToVar(bb, v)