commit | 7fdaba3e0f887b747f3face7bdc72ed09ea4d720 | [log] [tgz] |
---|---|---|
author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | Wed Mar 01 00:43:39 2017 +0000 |
committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | Wed Mar 01 00:43:39 2017 +0000 |
tree | 12043fff910f6dd277146bcb25f1d2ae8cafff57 | |
parent | 12246fec03787fe72cdef35ae2b7f07012d46160 [diff] |
[GlobalISel] Replace all combined G_EXTRACT uses. Iterating on the use-list we're modifying doesn't work: after the first iteration, the use-list iterator will point to a MachineOperand referencing the new register. This caused us to skip the other uses to replace. Instead, use MRI.replaceRegWith(), which accounts for this behavior. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296551 91177308-0d34-0410-b5e6-96231b3b80d8