[llvm] [SelectionDAG] Handle more opcodes in canCreateUndefOrPoison (PR #84921)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 12 07:25:35 PDT 2024
================
@@ -5073,6 +5073,16 @@ bool SelectionDAG::canCreateUndefOrPoison(SDValue Op, const APInt &DemandedElts,
case ISD::FREEZE:
case ISD::CONCAT_VECTORS:
case ISD::INSERT_SUBVECTOR:
+ case ISD::SADDSAT:
+ case ISD::UADDSAT:
+ case ISD::SSUBSAT:
+ case ISD::USUBSAT:
+ case ISD::MULHU:
+ case ISD::MULHS:
+ case ISD::SMIN:
+ case ISD::SMAX:
+ case ISD::UMIN:
+ case ISD::UMAX:
----------------
RKSimon wrote:
How many of these do we have test coverage for? One of the main reasons I stopped adding opcodes was because it was getting trickier to add tests.
https://github.com/llvm/llvm-project/pull/84921
More information about the llvm-commits
mailing list