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

[InstCombine] fold mul with decremented "shl -1" factor

This is a sibling to:
6064e92b
...but we canonicalize the shl+add to shl+xor,
so the pattern is different than I expected:
https://alive2.llvm.org/ce/z/8CX16e

I have not found any patterns that are safe
to propagate no-wrap, so that is not included
here.
parent 9a96f42a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment