[InstCombine] Fix worklist management in transformToIndexedCompare()
authorNikita Popov <npopov@redhat.com>
Thu, 1 Jun 2023 08:31:13 +0000 (10:31 +0200)
committerNikita Popov <npopov@redhat.com>
Thu, 1 Jun 2023 08:35:13 +0000 (10:35 +0200)
commit63babf54c22ab2045082b03d6794fac0738cad25
treeb4d418937a98b660219542b2827bc2eeadc9082f
parent53a483cee801a207bd851d94a8ee8aebfc3db963
[InstCombine] Fix worklist management in transformToIndexedCompare()

Use replaceInstUsesWith() rather than plain RAUW to make sure the
old instructions are added back to the worklist for DCE.
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp