commit | 8c8c66a8cd793989e88ee33f0541c1ea60b3cb10 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Thu May 11 17:11:52 2006 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Thu May 11 17:11:52 2006 +0000 |
tree | ce0ad76d063d2f27427cda36ac6cefe0b68543f7 | |
parent | f4df680ad407b4d3ef127b31abaf40c0dee1c8c1 [diff] |
Refactor some code, making it simpler. When doing the initial pass of constant folding, if we get a constantexpr, simplify the constant expr like we would do if the constant is folded in the normal loop. This fixes the missed-optimization regression in Transforms/InstCombine/getelementptr.ll last night. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28224 91177308-0d34-0410-b5e6-96231b3b80d8