This is an archive of the discontinued LLVM Phabricator instance.

[TypePromotion] Don't delete Insns when iterating
ClosedPublic

Authored by avieira on Aug 9 2022, 5:46 AM.

Details

Summary

Hi,

This patch changes the way we delete Insns in TypePromotion, such that we don't do it while iterating over the same BB we are deleting from. This hasn't been an issue before, I suspect because when searching up from icmp's we only delete Insns that are before the current Insn or in other BBs, but with the changes proposed in D111237 it will be an issue.

Diff Detail

Event Timeline

avieira created this revision.Aug 9 2022, 5:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2022, 5:46 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
avieira requested review of this revision.Aug 9 2022, 5:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2022, 5:46 AM
samparker accepted this revision.Aug 9 2022, 6:40 AM

cheers!

This revision is now accepted and ready to land.Aug 9 2022, 6:40 AM
This revision was automatically updated to reflect the committed changes.