aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorAntonio Frighetto <me@antoniofrighetto.com>2025-07-18 08:26:11 +0200
committerAntonio Frighetto <me@antoniofrighetto.com>2025-07-18 08:33:42 +0200
commitc435cd173059863b44262ace75e0f381bbc6cb86 (patch)
tree219095ef7c219de7d54935e4068d4e5067ececfe /llvm/lib/Transforms/Utils/Local.cpp
parent1614c3b3c74b50dc6d5a7f359897bca221de931b (diff)
downloadllvm-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