[PATCH] Expand SimplifyCFG to convert certain simple switches to selects
Marcello Maggioni
hayarms at gmail.com
Thu Jun 19 18:01:19 PDT 2014
================
Comment at: lib/Transforms/Utils/SimplifyCFG.cpp:3762
@@ +3761,3 @@
+/// constant values, replace the switch with select.
+static bool SwitchToSelect(SwitchInst *SI, IRBuilder<> &Builder,
+ const DataLayout *DL) {
----------------
Eric Christopher wrote:
> ... this function is very very long. Any way to break it up a bit?
Yeah, maybe it is possible to break up the various stages (case 1, case 2 and case 3) in helper functions to shorten it a little bit.
http://reviews.llvm.org/D4219
More information about the llvm-commits
mailing list