1
Fork 0

Consistently use dominates instead of is_dominated_by

There is a number of APIs that answer dominance queries. Previously they
were named either "dominates" or "is_dominated_by". Consistently use the
"dominates" form.

No functional changes.
This commit is contained in:
Tomasz Miąsko 2023-01-20 00:00:00 +00:00
parent b22aa57fd5
commit 955e7fbb16
5 changed files with 18 additions and 18 deletions

View file

@ -3049,7 +3049,7 @@ impl Location {
if self.block == other.block {
self.statement_index <= other.statement_index
} else {
dominators.is_dominated_by(other.block, self.block)
dominators.dominates(self.block, other.block)
}
}
}