================
@@ -10626,6 +10649,9 @@ SDValue DAGCombiner::visitSRA(SDNode *N) {
if (SDValue NarrowLoad = reduceLoadWidth(N))
return NarrowLoad;
+ if (SDValue AVG = combineAVG(N))
----------------
dnsampaio wrote:
foldShiftToAvg then.
https://github.com/llvm/llvm-project/pull/113909