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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment