[PATCH] D30925: VirtRegMap: Correctly deal with bundles when deleting identity copies.
Matthias Braun via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 13 18:49:11 PDT 2017
MatzeB created this revision.
Herald added subscribers: wdng, mcrosier.
This fixes two problems when VirtRegMap encounters bundles:
- When substituting a vreg subregister def with an actual register the internal read flag must be cleared.
- Removing an identity COPY from a bundle needs to use removeFromBundle() and a newly introduced function to update SlotIndexes.
No testcase here, because none of the in-tree targets trigger this, however an upcoming commit of mine will need this and the testcase there will trigger this.
Repository:
rL LLVM
https://reviews.llvm.org/D30925
Files:
include/llvm/CodeGen/SlotIndexes.h
lib/CodeGen/SlotIndexes.cpp
lib/CodeGen/VirtRegMap.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30925.91656.patch
Type: text/x-patch
Size: 4721 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170314/d83ad1ec/attachment.bin>
More information about the llvm-commits
mailing list