mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
some stuff is done
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26004 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5f3b0eeddb
commit
176f0416d1
@ -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…
x
Reference in New Issue
Block a user