[llvm] [IR] Don't store switch case values as operands (PR #170984)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 11 07:48:24 PST 2025


================
@@ -243,4 +243,74 @@ TEST(MergeFunctions, FalseOutputFunctionsTest) {
   EXPECT_EQ(MergeResult.size(), 0u);
 }
 
-} // namespace
\ No newline at end of file
+TEST(MergeFunctions, SwitchMergeTrue) {
----------------
nikic wrote:

I'd prefer if this were an IR test in llvm/test/Transforms/MergeFunc

https://github.com/llvm/llvm-project/pull/170984


More information about the llvm-commits mailing list