Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Transforms] Vectorizing Mem2Reg Pass #107688

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions llvm/include/llvm/Support/GenericDomTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,14 @@ class DominatorTreeBase {
return getNode(BB);
}

/// getNode - Access a node directly when its node number is known.
DomTreeNodeBase<NodeT> *getNode(unsigned Idx) const {
// DT is 1-indexed.
if (Idx + 1 < DomTreeNodes.size())
return DomTreeNodes[Idx + 1].get();
return nullptr;
}

/// getRootNode - This returns the entry node for the CFG of the function. If
/// this tree represents the post-dominance relations for a function, however,
/// this root may be a node with the block == NULL. This is the case when
Expand Down
Loading
Loading