forked from OSchip/llvm-project
parent
2e90b732fa
commit
4b8fcc229f
|
@ -65,10 +65,6 @@ Number 1 is the preferred solution.
|
|||
//===---------------------------------------------------------------------===//
|
||||
|
||||
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
|
||||
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue