summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/experimental/simd/simd.traits/is_simd_mask.pass.cpp
diff options
context:
space:
mode:
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2018-04-23 19:55:04 +0000
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2018-04-23 19:55:04 +0000
commit8e484dc531a37cccc805335c0ede696b2b26fa9f (patch)
tree235637fa45dd59a208309c9189eb675f7a02ecb4 /libcxx/test/std/experimental/simd/simd.traits/is_simd_mask.pass.cpp
parent61908f651ed21237599af6ccfb555da3bcff6dd1 (diff)
downloadbcm5719-llvm-8e484dc531a37cccc805335c0ede696b2b26fa9f.tar.gz
bcm5719-llvm-8e484dc531a37cccc805335c0ede696b2b26fa9f.zip
[MemCpyOpt] Skip optimizing basic blocks not reachable from entry
Summary: Skip basic blocks not reachable from the entry node in MemCpyOptPass::iterateOnFunction. Code that is unreachable may have properties that do not exist for reachable code (an instruction in a basic block can for example be dominated by a later instruction in the same basic block, for example if there is a single block loop). MemCpyOptPass::processStore is only safe to use for reachable basic blocks, since it may iterate past the basic block beginning when used for unreachable blocks. By simply skipping to optimize unreachable basic blocks we can avoid asserts such as "Assertion `!NodePtr->isKnownSentinel()' failed." in MemCpyOptPass::processStore. The problem was detected by fuzz tests. Reviewers: eli.friedman, dneilson, efriedma Reviewed By: efriedma Subscribers: efriedma, llvm-commits Differential Revision: https://reviews.llvm.org/D45889 llvm-svn: 330635
Diffstat (limited to 'libcxx/test/std/experimental/simd/simd.traits/is_simd_mask.pass.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud