summaryrefslogtreecommitdiffstats
path: root/libcxx/include/support
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-10-22 19:58:20 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-10-22 19:58:20 +0000
commita6674c7fc965ef39b97d2faf518587e02cc23d56 (patch)
treec1646c6d486ab6d6f84a89e56f9d42255718d986 /libcxx/include/support
parente35328c878280cc345006d7a24020cdd1e0fcc63 (diff)
downloadbcm5719-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')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud