mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
transformation implemented
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26754 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
22a66c41f3
commit
ad5a3a0265
@ -88,16 +88,6 @@ Shrink: (setlt (loadi32 P), 0) -> (setlt (loadi8 Phi), 0)
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
Reassociate is missing this:
|
||||
|
||||
int test(int X, int Y) {
|
||||
return (X+X+Y+Y); // (X+Y) << 1;
|
||||
}
|
||||
|
||||
it needs to turn the shifts into multiplies to get it.
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
Reassociate should turn: X*X*X*X -> t=(X*X) (t*t) to eliminate a multiply.
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
Loading…
x
Reference in New Issue
Block a user