Skip to content
  1. Mar 27, 2012
  2. Mar 26, 2012
  3. Mar 25, 2012
    • Chandler Carruth's avatar
      Teach instsimplify how to simplify comparisons of pointers which are · 8059c84a
      Chandler Carruth authored
      constant-offsets of a common base using the generic GEP-walking logic
      I added for computing pointer differences in the same situation.
      
      llvm-svn: 153419
      8059c84a
    • Chandler Carruth's avatar
      Switch the pointer-difference simplification logic to only work with · 2741aae8
      Chandler Carruth authored
      inbounds GEPs. This isn't really necessary for simplifying pointer
      differences, but I'm planning to re-use the same code to simplify
      pointer comparisons where it is necessary. Since real code almost
      exclusively uses inbounds GEPs, it doesn't seem worth it to support the
      extra complexity of turning it on and off. If anyone would like that
      back, feel free to shout. Note that instcombine will still catch any of
      these patterns.
      
      llvm-svn: 153418
      2741aae8
    • Craig Topper's avatar
      Prune some includes and forward declarations. · d4a964cd
      Craig Topper authored
      llvm-svn: 153415
      d4a964cd
    • Craig Topper's avatar
      Prune some includes and forward declarations. · 7a901d98
      Craig Topper authored
      llvm-svn: 153414
      7a901d98
    • Eli Bendersky's avatar
      This file is no longer needed (DejaGNU-isms removed from code) · a77c95f3
      Eli Bendersky authored
      llvm-svn: 153412
      a77c95f3
    • Rafael Espindola's avatar
      s/restrict/describe/ · 1ff70a7c
      Rafael Espindola authored
      Thanks Duncan.
      
      llvm-svn: 153411
      1ff70a7c
    • Chandler Carruth's avatar
      Teach the function cloner (and thus the inliner) to simplify PHINodes · ef82cf5b
      Chandler Carruth authored
      aggressively. There are lots of dire warnings about this being expensive
      that seem to predate switching to the TrackingVH-based value remapper
      that is automatically updated on RAUW. This makes it easy to not just
      prune single-entry PHIs, but to fully simplify PHIs, and to recursively
      simplify the newly inlined code to propagate PHINode simplifications.
      
      This introduces a bit of a thorny problem though. We may end up
      simplifying a branch condition to a constant when we fold PHINodes, and
      we would like to nuke any dead blocks resulting from this so that time
      isn't wasted continually analyzing them, but this isn't easy. Deleting
      basic blocks *after* they are fully cloned and mapped into the new
      function currently requires manually updating the value map. The last
      piece of the simplification-during-inlining puzzle will require either
      switching to WeakVH mappings or some other piece of refactoring. I've
      left a FIXME in the testcase about this.
      
      llvm-svn: 153410
      ef82cf5b
Loading