[llvm] [DAGCombiner] Add combine avg from shifts (PR #113909)

via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 28 14:59:30 PDT 2024


================
@@ -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


More information about the llvm-commits mailing list