forked from OSchip/llvm-project
Use right function in LoopVectorize.
- unsigned AS = getMemInstAlignment(I); + unsigned AS = getMemInstAddressSpace(I); Review: Hal Finkel llvm-svn: 302114
This commit is contained in:
parent
d9fadb2de8
commit
8bf1fdcc91
|
@ -7178,7 +7178,7 @@ unsigned LoopVectorizationCostModel::getMemoryInstructionCost(Instruction *I,
|
|||
if (VF == 1) {
|
||||
Type *ValTy = getMemInstValueType(I);
|
||||
unsigned Alignment = getMemInstAlignment(I);
|
||||
unsigned AS = getMemInstAlignment(I);
|
||||
unsigned AS = getMemInstAddressSpace(I);
|
||||
|
||||
return TTI.getAddressComputationCost(ValTy) +
|
||||
TTI.getMemoryOpCost(I->getOpcode(), ValTy, Alignment, AS, I);
|
||||
|
|
Loading…
Reference in New Issue