[PATCH] Expand SimplifyCFG to convert certain simple switches to selects

Eric Christopher echristo at gmail.com
Thu Jun 19 14:00:45 PDT 2014


Drive by miscellaneous style comment...

================
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) {
----------------
... this function is very very long. Any way to break it up a bit?

http://reviews.llvm.org/D4219






More information about the llvm-commits mailing list