Merge pull request #281 from kevinbackhouse/GlobalValueNumberingBugFix

Workaround for getFullyConverted returning multiple results.
This commit is contained in:
Robert Marsh
2018-10-04 09:54:36 -07:00
committed by GitHub

View File

@@ -312,7 +312,7 @@ private predicate analyzableLocalScopeVariable(VariableAccess access) {
strictcount (SsaDefinition def, Variable v | def.getAUse(v) = access | v) = 1 and
count (SsaDefinition def, Variable v
| def.getAUse(v) = access
| def.getDefiningValue(v)) <= 1 and
| def.getDefiningValue(v).getFullyConverted()) <= 1 and
not analyzableConst(access)
}