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 | b5afa65b0a426ef8ce7b4602952b5c3b106071e7 (patch) | |
tree | 19b8f73545bb7dbdbfc2c625bd1f119edcd0be1d /clang/lib/Basic/FileManager.cpp | |
parent | e3120ed1bfc0b8163186732efce14f3b5d9ecf5f (diff) | |
download | bcm5719-llvm-b5afa65b0a426ef8ce7b4602952b5c3b106071e7.tar.gz bcm5719-llvm-b5afa65b0a426ef8ce7b4602952b5c3b106071e7.zip |
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
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
0 files changed, 0 insertions, 0 deletions