Commit 4faeb7db authored by Craig Topper's avatar Craig Topper
Browse files

[InstCombine] Add test for missed opportunity to fold 'or' into 'mul' operand. NFC

We are able to fold

or (mul X, Y), X --> mul X, (add Y, 1) (when the multiply has no common bits with X)

but we miss it if the mul operands are commuted.
parent 7a0fd97a
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