[llvm] [StructurizeCFG] Fix incorrect zero-cost hoisting in nested control flow (PR #183792)
Yunbo Ni via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 7 21:21:34 PST 2026
cardigan1008 wrote:
> I couldn't reproduce the issue. It seems the problematic IR you got were missing lower-switch. StructurizeCFG doesn't handle `switch` instructions directly, so you cannot skip lower-switch. If you add lower-switch, the issue will disappear. Can you double check? Thanks.
Hi @yxsamliu, sorry for the confusion. I mixed things up in my previous validation. After double-checking the logs, I found that `lower-switch` was indeed skipped there. Once I added it back, the issue disappeared. Thanks for pointing this out.
https://github.com/llvm/llvm-project/pull/183792
More information about the llvm-commits
mailing list