[InstCombine] fix miscompile from urem/udiv transform with constant expression
The isa<Constant> check could misfire on an instruction with 2 constant operands. This bug was introduced with bb789381 (D36988). See issue #56810 for a C source example that exposed the bug.
Loading
Please sign in to comment