[all-commits] [llvm/llvm-project] c435cd: [SimplifyCFG] Cache unique predecessors in `simpli...
Antonio Frighetto via All-commits
all-commits at lists.llvm.org
Thu Jul 17 23:34:58 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c435cd173059863b44262ace75e0f381bbc6cb86
https://github.com/llvm/llvm-project/commit/c435cd173059863b44262ace75e0f381bbc6cb86
Author: Antonio Frighetto <me at antoniofrighetto.com>
Date: 2025-07-18 (Fri, 18 Jul 2025)
Changed paths:
M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
M llvm/test/Transforms/SimplifyCFG/switch-dup-bbs.ll
M llvm/test/Transforms/SimplifyCFG/switch-range-to-icmp.ll
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list