zpu: a little less Frankenstein in the stackpass
commit432e8dfb84bf737a85282a008b7e6fd715a55823
authorcarl <carl@carl-desktop.(none)>
Wed, 24 Nov 2010 18:16:17 +0000 (24 19:16 +0100)
committercarl <carl@carl-desktop.(none)>
Wed, 24 Nov 2010 18:16:17 +0000 (24 19:16 +0100)
tree631b339c195a18a1543331cbfea77c86b6c3327e
parentccee7202a8140ec061aa1f91b76b4578d27c8bfb
zpu: a little less Frankenstein in the stackpass

Plan is to make the stack pass work in a very simple way.
For LHS registers a new stockslot will be created only once, RHS registers will use previous created stackslots.
So
r0 = load ...
r1 = load ...
r2 = add r1,r0

will be

[sp0] = load ...
[sp1] = load ...
[sp2] = add [sp1],[sp0]
lib/Target/ZPU/AsmPrinter/ZPUAsmPrinter.cpp [changed mode: 0644->0755]
lib/Target/ZPU/ZPUInstrInfo.td [changed mode: 0644->0755]
lib/Target/ZPU/ZPUStackSlot.cpp [changed mode: 0644->0755]