]> granicus.if.org Git - llvm/commit
[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)
commit8b2132abbea2f562fcc51468318d55c736f9cad0
tree089dc85b51f430c71874da08d678d7c247f39980
parentde5c0c25c0e46a2c96617777b71908488f96a17c
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298356 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ConstantFolding.cpp
test/Analysis/ConstantFolding/timeout.ll [new file with mode: 0644]