diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-11-23 18:52:42 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-11-23 18:52:42 +0000 |
commit | b70ebd2aa3b6f4546d4734e7bcdbed2017036b4d (patch) | |
tree | 7a1cb693711ee656cedc1b3c67fddc8f6bf61aa0 /lib/Transforms/Utils/LoopUnroll.cpp | |
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
Diffstat (limited to 'lib/Transforms/Utils/LoopUnroll.cpp')
0 files changed, 0 insertions, 0 deletions