commit | 4e91ee7a2a80142c3774a9984f92a3fae1c126e7 | [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 | fa08e7c9454579598eaac254327afbf42a022bd9 | |
parent | 539c9b99c27c0fe4f22a0498bc65334e4aa72ef0 [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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89915 91177308-0d34-0410-b5e6-96231b3b80d8