[clang] [llvm] [SimplifyCFG] Hoist common code for switch multi-case destinations (PR #165700)

2025-11-04 Thread Kunqiu Chen via cfe-commits
Camsyn wrote: Friendly ping, @nikic 😀 https://github.com/llvm/llvm-project/pull/165700 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SimplifyCFG] Hoist common code for switch multi-case destinations (PR #165700)

2025-10-31 Thread Kunqiu Chen via cfe-commits
@@ -1866,10 +1866,18 @@ bool SimplifyCFGOpt::hoistCommonCodeFromSuccessors(Instruction *TI, // If either of the blocks has it's address taken, then we can't do this fold, // because the code we'd hoist would no longer run when we jump into the block // by it's address.

[clang] [llvm] [SimplifyCFG] Hoist common code for switch multi-case destinations (PR #165700)

2025-10-31 Thread Kunqiu Chen via cfe-commits
https://github.com/Camsyn updated https://github.com/llvm/llvm-project/pull/165700 >From 091cc77fb2993a9e3df4c3583da4a92ac9d5d166 Mon Sep 17 00:00:00 2001 From: Camsyn Date: Thu, 30 Oct 2025 16:49:01 +0800 Subject: [PATCH 1/7] Add a test before commit --- .../SimplifyCFG/hoist-common-code.ll

[clang] [llvm] [SimplifyCFG] Hoist common code for switch multi-case destinations (PR #165700)

2025-10-30 Thread Kunqiu Chen via cfe-commits
@@ -1866,10 +1866,18 @@ bool SimplifyCFGOpt::hoistCommonCodeFromSuccessors(Instruction *TI, // If either of the blocks has it's address taken, then we can't do this fold, // because the code we'd hoist would no longer run when we jump into the block // by it's address.

[clang] [llvm] [SimplifyCFG] Hoist common code for switch multi-case destinations (PR #165700)

2025-10-30 Thread Kunqiu Chen via cfe-commits
https://github.com/Camsyn edited https://github.com/llvm/llvm-project/pull/165700 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SimplifyCFG] Hoist common code for switch multi-case destinations (PR #165700)

2025-10-30 Thread Kunqiu Chen via cfe-commits
https://github.com/Camsyn ready_for_review https://github.com/llvm/llvm-project/pull/165700 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SimplifyCFG] Hoist common code for switch multi-case destinations (PR #165700)

2025-10-30 Thread Kunqiu Chen via cfe-commits
https://github.com/Camsyn edited https://github.com/llvm/llvm-project/pull/165700 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SimplifyCFG] Hoist common code for switch multi-case destinations (PR #165700)

2025-10-30 Thread Kunqiu Chen via cfe-commits
https://github.com/Camsyn edited https://github.com/llvm/llvm-project/pull/165700 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SimplifyCFG] Hoist common code for multi-case destinations of switch (PR #165700)

2025-10-30 Thread Kunqiu Chen via cfe-commits
https://github.com/Camsyn updated https://github.com/llvm/llvm-project/pull/165700 >From 091cc77fb2993a9e3df4c3583da4a92ac9d5d166 Mon Sep 17 00:00:00 2001 From: Camsyn Date: Thu, 30 Oct 2025 16:49:01 +0800 Subject: [PATCH 1/4] Add a test before commit --- .../SimplifyCFG/hoist-common-code.ll