Skip to content

Commit e9ccb54

Browse files
- Replace getNumOccurrences() with ForceTargetInstructionCost
1 parent f1e98a6 commit e9ccb54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6762,7 +6762,7 @@ InstructionCost VPCostContext::getLegacyCost(Instruction *UI,
67626762
ElementCount VF) const {
67636763
InstructionCost Cost = CM.getInstructionCost(UI, VF);
67646764
if (Cost.isValid() && ForceTargetInstructionCost.getNumOccurrences())
6765-
return InstructionCost(ForceTargetInstructionCost.getNumOccurrences());
6765+
return InstructionCost(ForceTargetInstructionCost);
67666766
return Cost;
67676767
}
67686768

0 commit comments

Comments
 (0)