Fix a severe compile time problem when forming large SCEV expressions.
authorAndrew Trick <atrick@apple.com>
Wed, 31 Jul 2013 02:43:40 +0000 (02:43 +0000)
committerAndrew Trick <atrick@apple.com>
Wed, 31 Jul 2013 02:43:40 +0000 (02:43 +0000)
commitd832d32f57bc6d2bebf60e0befebc955d84aae12
treeeaa7c6ce98b77a13290cc8ecd3fa429f9a9dd05b
parent5bd1b815b360e7a5b886f58c7ca62ff124fa89eb
Fix a severe compile time problem when forming large SCEV expressions.

This fix is very lightweight. The same fix already existed for AddRec
but was missing for NAry expressions.

This is obviously an improvement and I'm unsure how to test compile
time problems.

Patch by Xiaoyi Guo!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187475 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp