diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-10-22 19:58:20 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-10-22 19:58:20 +0000 |
commit | a6674c7fc965ef39b97d2faf518587e02cc23d56 (patch) | |
tree | c1646c6d486ab6d6f84a89e56f9d42255718d986 /libcxx/include/support/win32/limits_win32.h | |
parent | e35328c878280cc345006d7a24020cdd1e0fcc63 (diff) | |
download | bcm5719-llvm-a6674c7fc965ef39b97d2faf518587e02cc23d56.tar.gz bcm5719-llvm-a6674c7fc965ef39b97d2faf518587e02cc23d56.zip |
Make SCEV's brute force analysis stronger in two ways. Firstly, we should be
able to constant fold load instructions where the argument is a constant.
Second, we should be able to watch multiple PHI nodes through the loop; this
patch only supports PHIs in loop headers, more can be done here.
With this patch, we now constant evaluate:
static const int arr[] = {1, 2, 3, 4, 5};
int test() {
int sum = 0;
for (int i = 0; i < 5; ++i) sum += arr[i];
return sum;
}
llvm-svn: 142731
Diffstat (limited to 'libcxx/include/support/win32/limits_win32.h')
0 files changed, 0 insertions, 0 deletions