[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:27 PDT 2024


================
@@ -7951,6 +7951,10 @@ static bool IsQRMVEInstruction(const SDNode *N, const SDNode *Op) {
   case ISD::MUL:
   case ISD::SADDSAT:
   case ISD::UADDSAT:
+  case ISD::AVGFLOORS:
+  case ISD::AVGFLOORU:
+  case ISD::AVGCEILS:
+  case ISD::AVGCEILU:
----------------
davemgreen wrote:

Just floor, not ceil for these I believe.

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


More information about the llvm-commits mailing list