[llvm] [DAG] Remove Depth=1 hack from isGuaranteedNotToBeUndefOrPoison checks (PR #152127)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 5 04:45:55 PDT 2025
================
@@ -6351,8 +6351,7 @@ SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, EVT VT,
break;
case ISD::FREEZE:
assert(VT == N1.getValueType() && "Unexpected VT!");
- if (isGuaranteedNotToBeUndefOrPoison(N1, /*PoisonOnly*/ false,
- /*Depth*/ 1))
+ if (isGuaranteedNotToBeUndefOrPoison(N1, /*PoisonOnly*/ false))
----------------
arsenm wrote:
```suggestion
if (isGuaranteedNotToBeUndefOrPoison(N1, /*PoisonOnly=*/ false))
```
https://github.com/llvm/llvm-project/pull/152127
More information about the llvm-commits
mailing list