[InstCombine] Fix worklist management in foldPHIArgIntToPtrToPHI()
authorNikita Popov <npopov@redhat.com>
Thu, 1 Jun 2023 08:18:30 +0000 (10:18 +0200)
committerNikita Popov <npopov@redhat.com>
Thu, 1 Jun 2023 08:20:12 +0000 (10:20 +0200)
commitcd888e6ffef85941836c6c85db9f19d0ac776d1f
tree0d61516adcd349fa785aff379bd80af9ee128c39
parent1d6a2c535793807da9febd06d796f872d7debb2f
[InstCombine] Fix worklist management in foldPHIArgIntToPtrToPHI()

Make sure the old operand is added back to the worklist for DCE.
llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp