[PATCH] SelectionDAG switch lowering: Replace unreachable default with most popular case.

David Majnemer david.majnemer at gmail.com
Fri Dec 5 16:55:20 PST 2014


================
Comment at: lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:2732
@@ +2731,3 @@
+    std::remove_if(Cases.begin(), Cases.end(),
+                   [&](const Case& C) { return C.BB == Default; });
+  }
----------------
`const Case &C`

http://reviews.llvm.org/D6510






More information about the llvm-commits mailing list