[llvm] [SLP] Enable optimization of freeze instructions (PR #102217)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 7 11:28:37 PDT 2024
================
@@ -10118,6 +10120,9 @@ BoUpSLP::getEntryCost(const TreeEntry *E, ArrayRef<Value *> VectorizedVals,
};
return GetCostDiff(GetScalarCost, GetVectorCost);
}
+ case Instruction::Freeze: {
+ return CommonCost;
+ }
----------------
alexey-bataev wrote:
Drop braces
https://github.com/llvm/llvm-project/pull/102217
More information about the llvm-commits
mailing list