

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


st
algorithm generates non-optimal spill decisions - your example can either show that Briggs’s comes up less than optimal spill code (ie, lower cost spill code can be found by a better algorithm) (acceptable solution) or second possibility could be that Briggs’ algorithm generates a spill when there exists a zero spill coloring solution (a solution that is really dear to my heart but is a difficult one). Assume a suitable number of available registers for your example.
LIVEIN [B] and LIVEOUT [B] sets being already computed for each basic block by the liveness analysis pass.
based control flow graph where : (a) coalescing will be useful – that is it will eliminate register-to-register moves without causing extra spills, (b) coalescing will not be useful where extra spill will be generated but register-to-register moves will be removed.
slide to account for variable latency of an instruction. For example, consider a LD (load) instruction, depending on whether it leads to cache hit or miss it can take either 2 or 5 cycles. Your schedule should benefit from low latency but should also not cause extra
decided to move some LD/STs to occupy empty slots but this will have an effect on unsafe code due to register occupancy at the point of motion of LD/ST. Thus, one must perform selective register re-allocation. First show an example of why and how this will happen and then sketch an approach to selectively recolor the register allocation based on the new LD/ST placement points.