]> granicus.if.org Git - llvm/commit
[MachineCombiner] Fix initialisation of LastUpdate for incremental update.
authorFlorian Hahn <florian.hahn@arm.com>
Wed, 11 Oct 2017 20:25:58 +0000 (20:25 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Wed, 11 Oct 2017 20:25:58 +0000 (20:25 +0000)
commit0782618d52269515612c4e9844f68d39f961f473
tree8705b967e9c642e63bec3bcf2e10a78466cc80c0
parenta398a71f79c6e15a837499ee84f8cc8e93d09648
[MachineCombiner] Fix initialisation of LastUpdate for incremental update.

Summary:
Fixes a bogus iterator resulting from the removal of a block's first instruction at the point that incremental update is enabled.

Patch by Paul Walker.

Reviewers: fhahn, Gerolf, efriedma, MatzeB

Reviewed By: fhahn

Subscribers: aemerson, javed.absar, llvm-commits

Differential Revision: https://reviews.llvm.org/D38734

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315502 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineCombiner.cpp
test/CodeGen/AArch64/machine-combiner.mir [new file with mode: 0644]