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
Loading