[PATCH] D26594: IR: Change the gep_type_iterator API to avoid always exposing the "current" type.

Haicheng Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 2 12:38:17 PST 2016


haicheng added inline comments.


================
Comment at: llvm/trunk/include/llvm/Analysis/TargetTransformInfoImpl.h:516
     if (static_cast<T *>(this)->isLegalAddressingMode(
-            PointerType::get(*GTI, AS), const_cast<GlobalValue *>(BaseGV),
+            PointerType::get(Type::getInt8Ty(PointeeType->getContext()), AS),
+            const_cast<GlobalValue *>(BaseGV),
----------------
Hi Peter,

Would you please take a look at D27357 ?

Should I change this line to fix the bug in the baseline?

Thank you,

Haicheng


Repository:
  rL LLVM

https://reviews.llvm.org/D26594





More information about the llvm-commits mailing list