]> granicus.if.org Git - llvm/commit
[GlobalISel] Permit select() to erase.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Tue, 8 Nov 2016 19:27:10 +0000 (19:27 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Tue, 8 Nov 2016 19:27:10 +0000 (19:27 +0000)
commit86b25f1697ebacea1cb6bb201f8c675a3484b3ca
tree8c1adc34fa87a56f199cb3aee1d5ee6afabc2e59
parent9579593784788024d58c09c9a251c78bc8c11b03
[GlobalISel] Permit select() to erase.

Erasing reverse_iterators is problematic; iterate manually.
While there, keep track of the range of inserted instructions.
It can miss instructions inserted elsewhere, but those are harder
to track.

Differential Revision: http://reviews.llvm.org/D22924

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286272 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalISel/InstructionSelect.cpp