commit | 49064ff7708bcd3b720ce79bc7629c2f3207b8d6 | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Sat Dec 24 17:31:53 2011 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Sat Dec 24 17:31:53 2011 +0000 |
tree | daadbed9a12eeceed7aa130309f423a14dadc44a | |
parent | 009da05e750b7bac7e1902fcdc85394de4ea63b3 [diff] |
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147256 91177308-0d34-0410-b5e6-96231b3b80d8