[llvm] [RISCV][DAG][TLI] Avoid scalarizing length decreasing shuffles (PR #115532)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 25 08:32:55 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:
Do something unconditionally and fix it up in a combiner if preferred, like anything else. Failing that, at minimum a TLI hook needs some kind of context if it's not going to be a simple bool field
https://github.com/llvm/llvm-project/pull/115532
More information about the llvm-commits
mailing list