another case Nate came up with

llvm-svn: 25943
This commit is contained in:
Chris Lattner 2006-02-03 22:05:41 +00:00
parent 277462e20f
commit d079dbb9b0
1 changed files with 3 additions and 0 deletions

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
//===---------------------------------------------------------------------===//