[ConstantFolding] Fix to prevent constant folding having to repeatedly scan operands...
authorDavid Green <david.green@arm.com>
Tue, 21 Mar 2017 10:17:39 +0000 (10:17 +0000)
committerDavid Green <david.green@arm.com>
Tue, 21 Mar 2017 10:17:39 +0000 (10:17 +0000)
commitda21170c49fb6d5bca8d04526729d821481779a4
tree40937c81c98d1564b6143055c6ac4c4a40efe885
parent57db7c6860c695222ead418a80bdde341176608c
[ConstantFolding] Fix to prevent constant folding having to repeatedly scan operands. NFCI

After the loop unroll threshold was increased in r295538, very
large constant expressions can be created. This prevents them
from having to be recursively scanned, leading to a compile
time blow-up.

Differential Revision: https://reviews.llvm.org/D30689

llvm-svn: 298356
llvm/lib/Analysis/ConstantFolding.cpp
llvm/test/Analysis/ConstantFolding/timeout.ll [new file with mode: 0644]