The get{Return,Unwind,Unreachable}Block functions in
UnifyFunctionExitNodes have not been used for many years,
so just remove them.
Details
- Reviewers
bjope - Commits
- rG17dce2fe43c9: [UnifyFunctionExitNodes] Remove unused getters, NFC
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Just hoping that those unused functions aren't used by some OOT project. But considering that the API is totally untested (and the unwind part isn't even visible any longer) I think this cleanup is motivated.
LGTM - but please fixup the stale comments first!
llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h | ||
---|---|---|
9–10 | Stale comments, starting at "Additionally...". | |
9–10 | Looks like this pass doesn't care about unwind? So this should probably say unreachable instead? | |
llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp | ||
8–9 | Maybe we could say "... at most one return instruction, and at most one unreachable instruction in them." | |
8–10 | Stale comments, starting at "Additionally...". |
Stale comments, starting at "Additionally...".