Skip to content
Commit d4940c0f authored by Sanjay Patel's avatar Sanjay Patel
Browse files

[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.
parent e637feee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment