another case Nate came up with

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25943 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-02-03 22:05:41 +00:00
parent f92bafa2ca
commit e7b06c65ba

View File

@ -68,4 +68,7 @@ For dag combiner and instcombine:
Fold: "A / (B << N)" where B is a power of 2, to "A >> (N + log2(B))".
Fold: "A % (B << N)" where B is a power of 2, to "A & ((B << N) - 1)".
int t(int X, int Y) { return 1 << (X+4); } --> 16 << X
//===---------------------------------------------------------------------===//