[llvm] [DAG] canCreateUndefOrPoison - add handling for ISD::ABS nodes (PR #148791)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 15 00:20:34 PDT 2025
================
@@ -5550,6 +5550,7 @@ bool SelectionDAG::canCreateUndefOrPoison(SDValue Op, const APInt &DemandedElts,
case ISD::UMAX:
case ISD::AND:
case ISD::XOR:
+ case ISD::ABS:
----------------
arsenm wrote:
If this is different from the intrinsic, that's annoying and probably bad. But worth keeping as a separate case with a comment calling that out
https://github.com/llvm/llvm-project/pull/148791
More information about the llvm-commits
mailing list