[llvm] [RISCV][DAG][TLI] Avoid scalarizing length decreasing shuffles (PR #115532)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 19 10:50:52 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; }
----------------
arsenm wrote:
Single purpose target hook with no parameters
https://github.com/llvm/llvm-project/pull/115532
More information about the llvm-commits
mailing list