commit | b70ebd2aa3b6f4546d4734e7bcdbed2017036b4d | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Tue Nov 23 18:52:42 2010 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Tue Nov 23 18:52:42 2010 +0000 |
tree | 7a1cb693711ee656cedc1b3c67fddc8f6bf61aa0 | |
parent | e104f1bccbf828dcbe4e82709c8ca97d8bf018d5 [diff] |
InstCombine: Reduce "X shift (A srem B)" to "X shift (A urem B)" iff B is positive. This allows to transform the rem in "1 << ((int)x % 8);" to an and. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120028 91177308-0d34-0410-b5e6-96231b3b80d8