[llvm] [RISCV][DAG][TLI] Avoid scalarizing length decreasing shuffles (PR #115532)

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 25 07:59:16 PST 2024


================
@@ -545,6 +545,11 @@ class TargetLoweringBase {
     return DefinedValues < 3;
   }
 
+  // In SDAG construction, should length decreasing shuffles be expanded
+  // to a sequence of extracts and inserts if they can't be recognized
+  // via the two extracted operand form?
+  virtual bool shouldScalarizeLengthDecreasingShuffle() const { return true; }
----------------
preames wrote:

Yes?  Did you have specific changes you'd like to see here?

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


More information about the llvm-commits mailing list