aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Vectorize/VecUtils.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-04-13 12:53:18 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-04-13 12:53:18 +0000
commit8848680ce0ab416cb646d0a03aa6f4f6f25e7623 (patch)
tree8cb969d787c126e7e54de60aa90c7977169fcffc /lib/Transforms/Vectorize/VecUtils.cpp
parentb99c995825a49f0da5af40ee1b61269deb8994b5 (diff)
Fix a scalability issue with complex ConstantExprs.
This is basically the same fix in three different places. We use a set to avoid walking the whole tree of a big ConstantExprs multiple times. For example: (select cmp, (add big_expr 1), (add big_expr 2)) We don't want to visit big_expr twice here, it may consist of thousands of nodes. The testcase exercises this by creating an insanely large ConstantExprs out of a loop. It's questionable if the optimizer should ever create those, but this can be triggered with real C code. Fixes PR15714. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179458 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Vectorize/VecUtils.cpp')
0 files changed, 0 insertions, 0 deletions