diff options
author | Amara Emerson <aemerson@apple.com> | 2017-10-06 19:24:15 +0000 |
---|---|---|
committer | Amara Emerson <aemerson@apple.com> | 2017-10-06 19:24:15 +0000 |
commit | ba0f79af92f9a4ed19d58c81bd7d185f2263231a (patch) | |
tree | 7b0608a22d8468840911cd39e1ec6860993642df /clang/test/SemaObjC | |
parent | 3f850bfcf08f6bc4c0e0a0c847c0e57a2270ef9b (diff) | |
download | bcm5719-llvm-ba0f79af92f9a4ed19d58c81bd7d185f2263231a.tar.gz bcm5719-llvm-ba0f79af92f9a4ed19d58c81bd7d185f2263231a.zip |
[GlobalISel] Fix legalizer trying to process a deleted instruction.
In some cases an instruction is deleted from the block during combining,
however it can still exist in the legalizer worklist.
This change modifies the combiner routines to add the given MI to the
dead instruction list rather than trying to remove it from the block
themselves. The responsibility is then on the caller to delete the instruction
from the block and any worklists.
Differential Revision: https://reviews.llvm.org/D38622
llvm-svn: 315092
Diffstat (limited to 'clang/test/SemaObjC')
0 files changed, 0 insertions, 0 deletions