mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Use more type helper functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193109 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1069,7 +1069,7 @@ Value *InnerLoopVectorizer::getConsecutiveVector(Value* Val, int StartIdx,
|
||||
int LoopVectorizationLegality::isConsecutivePtr(Value *Ptr) {
|
||||
assert(Ptr->getType()->isPointerTy() && "Unexpected non ptr");
|
||||
// Make sure that the pointer does not point to structs.
|
||||
if (cast<PointerType>(Ptr->getType())->getElementType()->isAggregateType())
|
||||
if (Ptr->getType()->getPointerElementType()->isAggregateType())
|
||||
return 0;
|
||||
|
||||
// If this value is a pointer induction variable we know it is consecutive.
|
||||
|
Reference in New Issue
Block a user