[llvm] [SLP][NFC] Unify code for cost estimation/codegen for buildvector, NFC. (PR #73182)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 30 04:33:01 PST 2023
================
@@ -10341,7 +10470,7 @@ class BoUpSLP::ShuffleInstructionBuilder final : public BaseShuffleAnalysis {
InVectors.push_back(V1);
}
/// Adds another one input vector and the mask for the shuffling.
- void add(Value *V1, ArrayRef<int> Mask) {
+ void add(Value *V1, ArrayRef<int> Mask, bool = false) {
----------------
alexey-bataev wrote:
It is a unification with the cost estimator interface, check `void add(Value *V1, ArrayRef<int> Mask, bool ForExtracts = false)` from ShuffleCostEstimator. Same functions with the same args will be used for both code gen/cost estimation.
https://github.com/llvm/llvm-project/pull/73182
More information about the llvm-commits
mailing list