Implement a new DecomposeGEPExpression method, which decomposes a GEP into a list of scaled offsets.  Use this to eliminate some previous ad-hoc code which was subtly broken (it assumed all Constant*'s were non-zero, but strange constant express could be zero).

llvm-svn: 89915
1 file changed
tree: d9219f2f7ffe38d6e4e647d39dc34a42c1241513
  1. clang/
  2. compiler-rt/
  3. llvm/