[PATCH] D22295: Introduce GlobalSplit pass.

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 26 15:51:38 PDT 2016


eli.friedman added inline comments.

================
Comment at: lib/Transforms/IPO/GlobalSplit.cpp:52
@@ +51,3 @@
+    auto *GEP = dyn_cast<GEPOperator>(U);
+    if (!GEP || !GEP->getInRangeIndex() || *GEP->getInRangeIndex() != 1 ||
+        !isa<ConstantInt>(GEP->getOperand(1)) ||
----------------
My point was that loads and stores aren't the only way to use a pointer; what about pointer value comparisons?


https://reviews.llvm.org/D22295





More information about the llvm-commits mailing list