Skip to content
  • Chandler Carruth's avatar
    Add loop aligning to MachineBlockPlacement based on review discussion so · 8b9737cb
    Chandler Carruth authored
    it's a bit more plausible to use this instead of CodePlacementOpt. The
    code for this was shamelessly stolen from CodePlacementOpt, and then
    trimmed down a bit. There doesn't seem to be much utility in returning
    true/false from this pass as we may or may not have rewritten all of the
    blocks. Also, the statistic of counting how many loops were aligned
    doesn't seem terribly important so I removed it. If folks would like it
    to be included, I'm happy to add it back.
    
    This was probably the most egregious of the missing features, and now
    I'm going to start gathering some performance numbers and looking at
    specific loop structures that have different layout between the two.
    
    Test is updated to include both basic loop alignment and nested loop
    alignment.
    
    llvm-svn: 142645
    8b9737cb
Loading