<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/60413>60413</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [DAGCombiner] visitFREEZE() crashes
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            RKSimon,
            uweigand
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          JonPsson
      </td>
    </tr>
</table>

<pre>
    ```
(gdb) p N->dump()
t293: v4i32 = <<Deleted Node!>>
```
Looks like visitFREEZE() is visited with a deleted node somehow. There are multiple freeze nodes on the DAG but this time 
isGuaranteedNotToBeUndefOrPoisonForTargetNode() is never called.

./bin/llc -mtriple=s390x-linux-gnu ./tc_freeze-02b.ll -o /dev/null
[testcase.tar.gz](https://github.com/llvm/llvm-project/files/10545996/testcase.tar.gz)


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUk8Fu4zgMhp-GvhAxZMl24oMPaRwX2F10i273speFbDG2prIUSHLS6dMPYqcYzGAuAxAUQBE_P1KUDEEPlqiG4gE4f_nzHz05C5wDPwDn85X0IK26BYomkXMcna__cPY5BGeTzqmvNZTsbqwBtge-G1QHvMIzPm1AHNU8nYHvgFdrQuSVALHHS64FRxANgjiAODRkKJLCJ6cIeAbieLNV88cSfzn3FtDoN8KLDjq2L8fjf8e1BuqwBknhVccRJaq7sHWKMLiJRndN8XUkTyg94TSbqM-G8OSJPmjJC-gsxpGw2T9iN0eMow4Y9US4MujwOEsvbSRSTy6-ugf61yo6_e2fnQ7Ots6_Sj9QXNv5RLN0IY-9NIZUem9u8SnwttMWeGtMj5sp-hsSiCaIir1vjLbz-2awM94SY___yrphvEuNwY1D4K2iC_DWzsbclYuHSCH2MlAapU-HDyga4LsxxnMAsQfeAm8HHce5S3s3LcUvn8fm7N0X6iPw9qQNBeBtxoq8qKryhvCT8Ofrrj5RtVCVqGRCdVZui6ws-HaXjHVZnso-z3esqmTJT0V_ypjoc065yqlnXaJrzrhgmciyLM-yXdpVVb_tt6qQTClJBDmjSWqT3hhT54dEhzBTXbI8E4mRHZlw32ZLV1wu7-vr66Wvbh4C5MzoEMN3laijWb5Bs388uKnTljwUzS82rPcyjBSS2Zv6t0e58NxmufB-CwAA__9NphRA">