diff options
| author | Nikita Popov <npopov@redhat.com> | 2025-09-16 09:24:02 +0200 |
|---|---|---|
| committer | Tom Stellard <tstellar@redhat.com> | 2025-09-23 12:22:24 -0700 |
| commit | b708aea0bc7127adf4ec643660699c8bcdde1273 (patch) | |
| tree | e76ce371ec6f3bce8dfb1f452e314d7ee6aca0ba /libc | |
| parent | 77a3b0eda3610cdda11a9f2bdeda18dc4e49bc95 (diff) | |
[SCEV] Don't perform implication checks with many predicates (#158652)llvmorg-21.1.2
When adding a new predicate to a union, we currently do a bidirectional
implication for all the contained predicates. This means that the number
of implication checks is quadratic in the number of total predicates (if
they don't end up being eliminated).
Fix this by not checking for implication if the number of predicates
grows too large. The expectation is that if there is a large number of
predicates, we should be discarding them later anyway, as expanding them
would be too expensive.
Fixes https://github.com/llvm/llvm-project/issues/156114.
(cherry picked from commit 7af659d0f117802627fc47f73ca5dd20439c5d7b)
Diffstat (limited to 'libc')
0 files changed, 0 insertions, 0 deletions
