[llvm] [RISCV] Add Tune to DontSinkSplatOperands (PR #79199)

Wang Pengcheng via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 24 19:01:22 PST 2024


================
@@ -1082,6 +1082,13 @@ def TuneShortForwardBranchOpt
 def HasShortForwardBranchOpt : Predicate<"Subtarget->hasShortForwardBranchOpt()">;
 def NoShortForwardBranchOpt : Predicate<"!Subtarget->hasShortForwardBranchOpt()">;
 
+// Some subtargets require a S2V transfer buffer to move scalars into vectors.
+// FIXME: Forming .vx/.vf/.wx/.wf can reduce register pressure.
+def TuneDontSinkSplatOperands
+    : SubtargetFeature<"dont-sink-splat-operands", "DontSinkSplatOperands",
----------------
wangpc-pp wrote:

`DontSinkSplatOperands` -> `SinkSplatOperands`, and then change `true` to `false`?
This matches other `SubtargetFeature`s that will disable some features.

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


More information about the llvm-commits mailing list