[PATCH] D37277: [TTI] Fix getGEPCost() for geps with a single operand
Davide Italiano via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 29 14:38:58 PDT 2017
davide added inline comments.
================
Comment at: include/llvm/Analysis/TargetTransformInfoImpl.h:677
auto GTI = gep_type_begin(PointeeType, Operands);
- Type *TargetType;
+ Type *TargetType = nullptr;
for (auto I = Operands.begin(); I != Operands.end(); ++I, ++GTI) {
----------------
Note, this is not strictly part of the fix (but it's needed to trigger it deterministically, as on my machine the uninitialized pointer get weird values).
https://reviews.llvm.org/D37277
More information about the llvm-commits
mailing list