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. llvm-svn: 120028
Loading
Please register or sign in to comment
This allows to transform the rem in "1 << ((int)x % 8);" to an and. llvm-svn: 120028