[InstCombine] Fix worklist management for multi-use demanded element fold
authorNikita Popov <npopov@redhat.com>
Wed, 17 May 2023 12:31:21 +0000 (14:31 +0200)
committerNikita Popov <npopov@redhat.com>
Wed, 17 May 2023 12:54:27 +0000 (14:54 +0200)
commit3b8f4422894bc7622c8bb42ae62adbc24c662015
tree3b989c501dd146bcc9cbc6bcb07637fa9e1081b7
parentfbdd7856d54346747b574a558da7199cd2acdf4e
[InstCombine] Fix worklist management for multi-use demanded element fold

Add the old instruction to the worklist, so it can be DCEd in the
same iteration.
llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp