[GlobalISel] Combine `undef / X -> 0` and `undef % X -> 0`
This fixes the `urem_undef_lhs` case in the following: https://gcc.godbolt.org/z/Wo9x7o679 Also see https://github.com/llvm/llvm-project/issues/57256 for more related bugs. This is equivalent to the undef bits in `simplifyDivRem` in the DAGCombiner. Differential Revision: https://reviews.llvm.org/D135020
parent
3b0df701
Please register or sign in to comment