[PATCH] [INDVARS]

hfinkel at anl.gov hfinkel at anl.gov
Wed Aug 20 09:40:32 PDT 2014


LGTM. Thanks!

================
Comment at: lib/Transforms/Scalar/IndVarSimplify.cpp:847
@@ +846,3 @@
+    return SE->getMulExpr(LHS, RHS);
+  return nullptr;
+}
----------------
I recommend using llvm_unreachable here. The caller can't handle a null return value, and this function should never be called with any other opcode.

http://reviews.llvm.org/D4695






More information about the llvm-commits mailing list