[llvm] [SelectionDAG] Add PARTIAL_REDUCE_U/SMLA ISD Nodes (PR #125207)
James Chesterman via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 5 09:11:22 PST 2025
================
@@ -135,6 +135,13 @@ static cl::opt<unsigned> SwitchPeelThreshold(
"switch statement. A value greater than 100 will void this "
"optimization"));
+// FIXME : This is a temporary flag, and is used to help transition to
+// performing lowering the proper way using the new PARTIAL_REDUCE_MLA ISD
+// nodes.
+static cl::opt<bool> NewPartialReduceLowering(
+ "new-partial-reduce-lowering", cl::init(false), cl::ReallyHidden,
+ cl::desc("Use the new method of lowering partial reductions."));
+
----------------
JamesChesterman wrote:
I think it is necessary? The command line flag will set I to a `ISD::PARTIAL_REDUCE_MLA` node, meaning it doesn't go to `visitTargetIntrinsic`. I think it will let us test the different DAG combines that are going to be made further down the line.
https://github.com/llvm/llvm-project/pull/125207
More information about the llvm-commits
mailing list