[InstSimplify] sdiv a (1 srem b) --> a
Extend the existing fold for division by zero or one to use known bits, so it catches additional patterns like division by (1 srem b). Fixes https://github.com/llvm/llvm-project/issues/62163. Differential Revision: https://reviews.llvm.org/D149001
Loading
Please sign in to comment