[llvm] [SimplifyCFG] Consider preds to switch in `simplifyDuplicateSwitchArms` (PR #118955)

Antonio Frighetto via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 10 00:11:08 PST 2024


================
@@ -340,15 +340,23 @@ entry:
   i32 3, label %sw.bb3
   ]
 
-sw.bb: br label %if.end
-sw.bb1: br label %if.end
-sw.bb2: br label %if.end
-sw.bb3: br label %if.end
-sw.default: br label %if.end
-if.else: br label %if.end
+sw.bb:                                            ; preds = %entry, %entry
----------------
antoniofrighetto wrote:

I took the chance to regenerate the test too, as the `if.else` branch was dead.

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


More information about the llvm-commits mailing list