[PATCH] D121580: [SCCP] Fix crash when function arg is a unused basic block's address
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 15 11:20:11 PDT 2022
nickdesaulniers added a comment.
The issue is in [`runIPSCCP`](https://github.com/llvm/llvm-project/blob/687d20de7ffc69dd4ecdb9808aeb6d3cffcf3871/llvm/lib/Transforms/Scalar/SCCP.cpp#L500-L533). We don't clean up uses of any `BlockAddress`es before deleting the `BasicBlock` that's dead. So we basically need to do the same transform that was observed here <https://github.com/llvm/llvm-project/issues/54238#issuecomment-1067263764>. I'm working on a fix.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121580/new/
https://reviews.llvm.org/D121580
More information about the llvm-commits
mailing list