[llvm] [DAGCombiner] Add combine avg from shifts (PR #113909)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 28 10:00:26 PDT 2024
================
@@ -10626,6 +10649,9 @@ SDValue DAGCombiner::visitSRA(SDNode *N) {
if (SDValue NarrowLoad = reduceLoadWidth(N))
return NarrowLoad;
+ if (SDValue AVG = combineAVG(N))
----------------
davemgreen wrote:
We have a "foldAddToAvg" already, perhaps we could name this foldAvgFromShift or combineAvgFromFlags or something like it?
https://github.com/llvm/llvm-project/pull/113909
More information about the llvm-commits
mailing list