| commit | 89288994139b720ac196a7e698c78731e3d3d2fe | [log] [tgz] |
|---|---|---|
| author | Chris Lattner <sabre@nondot.org> | Thu Nov 26 02:13:03 2009 +0000 |
| committer | Chris Lattner <sabre@nondot.org> | Thu Nov 26 02:13:03 2009 +0000 |
| tree | d9219f2f7ffe38d6e4e647d39dc34a42c1241513 | |
| parent | a99edbedd13cafdc4d8264f5e374ea2d03f6730f [diff] |
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