C++: Clarify comment based on PR feedback

This commit is contained in:
Dave Bartolomeo
2019-04-17 09:29:09 -07:00
parent 34a422c756
commit 7071692373
2 changed files with 4 additions and 0 deletions

View File

@@ -647,6 +647,8 @@ module DefUse {
/**
* Holds if the specified `useLocation` is live on entry to `block`. This holds if there is a use of `useLocation`
* that is reachable from the start of `block` without passing through a definition that overlaps `useLocation`.
* Note that even a partially-overlapping definition blocks liveness, because such a definition will insert a `Chi`
* instruction whose result totally overlaps the location.
*/
predicate locationLiveOnEntryToBlock(Alias::MemoryLocation useLocation, OldBlock block) {
definitionHasPhiNode(useLocation, block) or

View File

@@ -647,6 +647,8 @@ module DefUse {
/**
* Holds if the specified `useLocation` is live on entry to `block`. This holds if there is a use of `useLocation`
* that is reachable from the start of `block` without passing through a definition that overlaps `useLocation`.
* Note that even a partially-overlapping definition blocks liveness, because such a definition will insert a `Chi`
* instruction whose result totally overlaps the location.
*/
predicate locationLiveOnEntryToBlock(Alias::MemoryLocation useLocation, OldBlock block) {
definitionHasPhiNode(useLocation, block) or