[PATCH] D18230: [SimplifyLibCalls] Simplify strlen to a subtraction for certain cases

Li Huang via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 12 11:13:38 PDT 2016


lihuang marked 3 inline comments as done.

================
Comment at: include/llvm/Analysis/ValueTracking.h:185-186
@@ -183,1 +184,4 @@
 
+  /// Returns true if the GEP is based on a pointer to a string (array of i8), 
+  /// and is indexing into this string.
+  bool isGEPBasedOnPointerToString(const GEPOperator *GEP);
----------------
Thanks! Will update the rest of this file :)


http://reviews.llvm.org/D18230





More information about the llvm-commits mailing list