[llvm] [DAG] SelectionDAG::canCreateUndefOrPoison - Mark AVGFLOORS and AVGCEILS as safe (PR #148191)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 11 04:25:26 PDT 2025
================
@@ -5542,6 +5542,10 @@ bool SelectionDAG::canCreateUndefOrPoison(SDValue Op, const APInt &DemandedElts,
case ISD::UADDSAT:
case ISD::SSUBSAT:
case ISD::USUBSAT:
+ case ISD::AVGFLOORS:
+ case ISD::AVGFLOORU:
+ case ISD::AVGCEILS:
+ case ISD::AVGCEILU:
----------------
RKSimon wrote:
you need test coverage for all 4 patterns
https://github.com/llvm/llvm-project/pull/148191
More information about the llvm-commits
mailing list