[llvm] [SLP] More accurately cost RISCV scalar splats (PR #213104)

Ryan Buchner via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 30 13:51:26 PDT 2026


================
@@ -22075,6 +21861,7 @@ class BoUpSLP::ShuffleInstructionBuilder final : public BaseShuffleAnalysis {
     CommonMask.clear();
     InVectors.clear();
   }
+  void addContextHint(TTI::VectorInstrContext Ctx) { (void)Ctx; }
----------------
bababuck wrote:

What alternative would you suggest? `ShuffleInstructionBuilder` needs to have an `addContextHint` instruction to support the template, but it doesn't use the `Context`.

https://github.com/llvm/llvm-project/pull/213104


More information about the llvm-commits mailing list