[llvm] [Support] Use block numbers for DomTree construction (PR #101706)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 6 00:51:30 PDT 2024
================
@@ -123,13 +132,29 @@ struct SemiNCAInfo {
return Res;
}
- NodePtr getIDom(NodePtr BB) const {
- auto InfoIt = NodeToInfo.find(BB);
- if (InfoIt == NodeToInfo.end()) return nullptr;
+ template <class T_ = NodeT>
----------------
aengelke wrote:
Used if constexpr instead, as in #101705.
https://github.com/llvm/llvm-project/pull/101706
More information about the llvm-commits
mailing list