Skip to content
Commit b16bd77b authored by Benjamin Kramer's avatar Benjamin Kramer
Browse files

InstCombine: Add a combine that turns (2^n)-1 ^ x back into (2^n)-1 - x iff x...

InstCombine: Add a combine that turns (2^n)-1 ^ x back into (2^n)-1 - x iff x is smaller than 2^n and it fuses with a following add.

This was intended to undo the sub canonicalization in cases where it's not profitable, but it also
finds some cases on it's own.

llvm-svn: 147256
parent 4ee5747f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment