diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-11-27 19:11:31 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-11-27 19:11:31 +0000 |
| commit | 2f0354ecf0512a62cf0bd5161d951f39538b6e32 (patch) | |
| tree | 74b0198a69b2c451d83f041541adf71d9f023636 /clang/lib/CodeGen/CGVtable.cpp | |
| parent | e66f84e012c2b15aa353a77286b7f68e21f64c36 (diff) | |
| download | bcm5719-llvm-2f0354ecf0512a62cf0bd5161d951f39538b6e32.tar.gz bcm5719-llvm-2f0354ecf0512a62cf0bd5161d951f39538b6e32.zip | |
add support for recursive phi translation and phi
translation of add with immediate. This allows us
to optimize this function:
void test(int N, double* G) {
long j;
G[1] = 1;
for (j = 1; j < N - 1; j++)
G[j+1] = G[j] + G[j+1];
}
to only do one load every iteration of the loop.
llvm-svn: 90013
Diffstat (limited to 'clang/lib/CodeGen/CGVtable.cpp')
0 files changed, 0 insertions, 0 deletions

