commit | 2f7228b80c6a129fa1d8eef8c3075085003d5b87 | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Sat Dec 11 10:49:22 2010 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Sat Dec 11 10:49:22 2010 +0000 |
tree | aacb8a9b0c2bd9c3c104daf4eb3d1c7bcfadb862 | |
parent | 20e3b4b380e949af32eeb4f184c51bfd62286f1a [diff] |
Generalize the and-icmp-select instcombine further by allowing selects of the form (x & 2^n) ? 2^m+C : C we can offset both arms by C to get the "(x & 2^n) ? 2^m : 0" form, optimize the select to a shift and apply the offset afterwards. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121609 91177308-0d34-0410-b5e6-96231b3b80d8