[llvm] r302114 - Use right function in LoopVectorize.
Jonas Paulsson via llvm-commits
llvm-commits at lists.llvm.org
Wed May 3 22:53:33 PDT 2017
>> ==============================================================================
>> --- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
>> +++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Thu May 4 00:31:56 2017
>> @@ -7178,7 +7178,7 @@ unsigned LoopVectorizationCostModel::get
>> 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);
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
> Testcase?
>
This was something I just happened to notice, and I don't have any test
case. We don't use address spaces on SystemZ... /Jonas
More information about the llvm-commits
mailing list