[ADCE] Only remove debug intrinsics if non debug instructions are removed
We now limit ADCE to only remove debug intrinsics if it does something else that would invalidate cached analyses anyway. As we've seen in https://github.com/llvm/llvm-project/issues/58285 throwing away cached analysis info when only debug instructions are removed can lead to different code when debug info is present or not present. Differential Revision: https://reviews.llvm.org/D145051
parent
57833636
Please register or sign in to comment