diff options
author | Antonio Frighetto <me@antoniofrighetto.com> | 2025-07-18 08:26:11 +0200 |
---|---|---|
committer | Antonio Frighetto <me@antoniofrighetto.com> | 2025-07-18 08:33:42 +0200 |
commit | c435cd173059863b44262ace75e0f381bbc6cb86 (patch) | |
tree | 219095ef7c219de7d54935e4068d4e5067ececfe /llvm/lib/Transforms/Utils/Local.cpp | |
parent | 1614c3b3c74b50dc6d5a7f359897bca221de931b (diff) | |
download | llvm-c435cd173059863b44262ace75e0f381bbc6cb86.zip llvm-c435cd173059863b44262ace75e0f381bbc6cb86.tar.gz llvm-c435cd173059863b44262ace75e0f381bbc6cb86.tar.bz2 |
[SimplifyCFG] Cache unique predecessors in `simplifyDuplicateSwitchArms`
Avoid repeatedly querying `getUniquePredecessor` for already-visited
switch successors so as not to incur quadratic runtime.
Fixes: https://github.com/llvm/llvm-project/issues/147239.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions