[PATCH] [InstCombine][CodeGenPrep] Create llvm.uadd.with.overflow in CGP.

Andrew Trick atrick at apple.com
Thu Apr 9 19:35:09 PDT 2015


The logic looks good. The purpose of the lambda escapes me.


================
Comment at: lib/CodeGen/CodeGenPrepare.cpp:754-755
@@ +753,4 @@
+/// Return true if any changes were made.
+static bool CombineOverflowCheckIdiom(CmpInst *CI) {
+  auto CombineUAddWithOverflow = [](CmpInst *CI) {
+    Value *A, *B;
----------------
What am I missing here? Are we going to need a lambda somewhere?

http://reviews.llvm.org/D8889

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list