Skip to content
  • Dan Gohman's avatar
    Remove the code which constant-folded ptrtoint(inttoptr(x)+c) to · 8a0eb36d
    Dan Gohman authored
    getelementptr. Despite only doing so in the case where x is a known
    array object and c can be converted to an index within range, this
    could still be invalid if c is actually the address of an object
    allocated outside of LLVM. Also, SCEVExpander, the original motivation
    for this code, has since been improved to avoid inttoptr+ptroint in
    more cases.
    
    llvm-svn: 96950
    8a0eb36d
Loading