This is an archive of the discontinued LLVM Phabricator instance.

FastISel: take care to update iterators when removing instructions.
Needs ReviewPublic

Authored by t.p.northover on Dec 7 2018, 3:00 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

We keep a few iterators into the basic block we're selecting while performing FastISel. Usually this is fine, but occasionally code wants to remove already-emitted instructions. When this happens we have to be careful to update those iterators so they're not pointint at dangling memory.

Diff Detail

Repository
rL LLVM