diff options
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/VectorCombine.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Vectorize/VectorCombine.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp index 57b11e9414ba..c0aedab2fed0 100644 --- a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp +++ b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp @@ -989,9 +989,9 @@ bool VectorCombine::scalarizeLoadExtract(Instruction &I) {    if (!FixedVT)      return false; -  InstructionCost OriginalCost = TTI.getMemoryOpCost( -      Instruction::Load, LI->getType(), Align(LI->getAlignment()), -      LI->getPointerAddressSpace()); +  InstructionCost OriginalCost = +      TTI.getMemoryOpCost(Instruction::Load, LI->getType(), LI->getAlign(), +                          LI->getPointerAddressSpace());    InstructionCost ScalarizedCost = 0;    Instruction *LastCheckedInst = LI;  | 
