[llvm] [SimplifyCFG] Convert switch to cmp/select sequence (PR #82795)

via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 26 10:16:12 PDT 2024


================
@@ -6166,6 +6166,279 @@ static bool trySwitchToSelect(SwitchInst *SI, IRBuilder<> &Builder,
   return true;
 }
 
+// The first field contains the value that the switch produces when a certain
+// case group is selected, and the second field is a vector containing the
+// cases composing the case group.
+using SwitchCaseResultVectorTy2 =
----------------
XChy wrote:

I dont really understand this name. Do you mean `ResultToCasesTy`?

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


More information about the llvm-commits mailing list