1. Nov 28, 2011
  2. Nov 27, 2011
    • Rafael Espindola's avatar
      Error on non x86 architectures. · 0618d14e
      Rafael Espindola authored
      llvm-svn: 145185
      0618d14e
    • Rafael Espindola's avatar
      Fix file name in comments. · fd03d0b7
      Rafael Espindola authored
      llvm-svn: 145184
      fd03d0b7
    • Chandler Carruth's avatar
      Take two on rotating the block ordering of loops. My previous attempt · 03adbd46
      Chandler Carruth authored
      was centered around the premise of laying out a loop in a chain, and
      then rotating that chain. This is good for preserving contiguous layout,
      but bad for actually making sane rotations. In order to keep it safe,
      I had to essentially make it impossible to rotate deeply nested loops.
      The information needed to correctly reason about a deeply nested loop is
      actually available -- *before* we layout the loop. We know the inner
      loops are already fused into chains, etc. We lose information the moment
      we actually lay out the loop.
      
      The solution was the other alternative for this algorithm I discussed
      with Benjamin and some others: rather than rotating the loop
      after-the-fact, try to pick a profitable starting block for the loop's
      layout, and then use our existing layout logic. I was worried about the
      complexity of this "pick" step, but it turns out such complexity is
      needed to handle all the important cases I keep teasing out of benchmarks.
      
      This is, I'm afraid, a bit of a work-in-progress. It is still
      misbehaving on some likely important cases I'm investigating in Olden.
      It also isn't really tested. I'm going to try to craft some interesting
      nested-loop test cases, but it's likely to be extremely time consuming
      and I don't want to go there until I'm sure I'm testing the correct
      behavior. Sadly I can't come up with a way of getting simple, fine
      grained test cases for this logic. We need complex loop structures to
      even trigger much of it.
      
      llvm-svn: 145183
      03adbd46
    • Chandler Carruth's avatar
      Revert r145180 as it is causing test failures on all the bots. · 37ab257b
      Chandler Carruth authored
      Original commit message:
      Fixed ObjectFile functions:
      - getSymbolOffset() renamed as getSymbolFileOffset()
      - getSymbolFileOffset(), getSymbolAddress(), getRelocationAddress() returns same result for ELFObjectFile, MachOObjectFile and COFFObjectFile.
      - added getRelocationOffset()
      - fixed MachOObjectFile::getSymbolSize()
      - fixed MachOObjectFile::getSymbolSection()
      - fixed MachOObjectFile::getSymbolOffset() for symbols without section data.
      
      llvm-svn: 145182
      37ab257b
    • Chandler Carruth's avatar
      Fix an impressive type-o / spell-o Duncan noticed. · 9e466841
      Chandler Carruth authored
      llvm-svn: 145181
      9e466841
    • Danil Malyshev's avatar
      Fixed ObjectFile functions: · 2631f93f
      Danil Malyshev authored
      - getSymbolOffset() renamed as getSymbolFileOffset()
      - getSymbolFileOffset(), getSymbolAddress(), getRelocationAddress() returns same result for ELFObjectFile, MachOObjectFile and COFFObjectFile.
      - added getRelocationOffset()
      - fixed MachOObjectFile::getSymbolSize()
      - fixed MachOObjectFile::getSymbolSection()
      - fixed MachOObjectFile::getSymbolOffset() for symbols without section data.
      
      llvm-svn: 145180
      2631f93f
    • Chandler Carruth's avatar
      Rework a bit of the implementation of loop block rotation to not rely so · a0545809
      Chandler Carruth authored
      heavily on AnalyzeBranch. That routine doesn't behave as we want given
      that rotation occurs mid-way through re-ordering the function. Instead
      merely check that there are not unanalyzable branching constructs
      present, and then reason about the CFG via successor lists. This
      actually simplifies my mental model for all of this as well.
      
      The concrete result is that we now will rotate more loop chains. I've
      added a test case from Olden highlighting the effect. There is still
      a bit more to do here though in order to regain all of the performance
      in Olden.
      
      llvm-svn: 145179
      a0545809