Skip to content
  1. Feb 20, 2009
    • Zhou Sheng's avatar
      Just roll back the previous change to -mem2reg. · 053737e1
      Zhou Sheng authored
      Will re-think about this according to Chris's comments.
      
      llvm-svn: 65126
      053737e1
    • Zhou Sheng's avatar
      patch to update the line number information in pass -mem2reg. · 6a0634d4
      Zhou Sheng authored
      Currently this pass will delete the variable declaration info, 
      and keep the line number info. But the kept line number info is not updated, 
      and some is redundant or not correct, this patch just updates those info.
      
      llvm-svn: 65123
      6a0634d4
    • Dan Gohman's avatar
      Implement "superhero" strength reduction, or full strength · 2a12ae7d
      Dan Gohman authored
      reduction of address calculations down to basic pointer arithmetic.
      This is currently off by default, as it needs a few other features
      before it becomes generally useful. And even when enabled, full
      strength reduction is only performed when it doesn't increase
      register pressure, and when several other conditions are true.
      
      This also factors out a bunch of exisiting LSR code out of
      StrengthReduceStridedIVUsers into separate functions, and tidies
      up IV insertion. This actually decreases register pressure even
      in non-superhero mode. The change in iv-users-in-other-loops.ll
      is an example of this; there are two more adds because there are
      two fewer leas, and there is less spilling.
      
      llvm-svn: 65108
      2a12ae7d
  2. Feb 19, 2009
  3. Feb 18, 2009
  4. Feb 17, 2009
  5. Feb 16, 2009
  6. Feb 15, 2009
  7. Feb 14, 2009
  8. Feb 13, 2009
  9. Feb 12, 2009
    • Dan Gohman's avatar
      Teach IndVarSimplify to optimize code using the C "int" type for · eb6be650
      Dan Gohman authored
      loop induction on LP64 targets. When the induction variable is
      used in addressing, IndVars now is usually able to inserst a
      64-bit induction variable and eliminates the sign-extending cast.
      This is also useful for code using C "short" types for
      induction variables on targets with 32-bit addressing.
      
      Inserting a wider induction variable is easy; the tricky part is
      determining when trunc(sext(i)) expressions are no-ops. This
      requires range analysis of the loop trip count. A common case is
      when the original loop iteration starts at 0 and exits when the
      induction variable is signed-less-than a fixed value; this case
      is now handled.
      
      This replaces IndVarSimplify's OptimizeCanonicalIVType. It was
      doing the same optimization, but it was limited to loops with
      constant trip counts, because it was running after the loop
      rewrite, and the information about the original induction
      variable is lost by that point.
      
      Rename ScalarEvolution's executesAtLeastOnce to
      isLoopGuardedByCond, generalize it to be able to test for
      ICMP_NE conditions, and move it to be a public function so that
      IndVars can use it.
      
      llvm-svn: 64407
      eb6be650
Loading