mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Ignore the cloning of unknown registers.
THe LRE_DidCloneVirtReg callback may be called with vitual registers that RAGreedy doesn't even know about yet. In that case, there are no data structures to update. llvm-svn: 139702
This commit is contained in:
parent
b08f6dc724
commit
44b1ea8bae
@ -377,6 +377,10 @@ void RAGreedy::LRE_WillShrinkVirtReg(unsigned VirtReg) {
|
||||
}
|
||||
|
||||
void RAGreedy::LRE_DidCloneVirtReg(unsigned New, unsigned Old) {
|
||||
// Cloning a register we haven't even heard about yet? Just ignore it.
|
||||
if (!ExtraRegInfo.inBounds(Old))
|
||||
return;
|
||||
|
||||
// LRE may clone a virtual register because dead code elimination causes it to
|
||||
// be split into connected components. The new components are much smaller
|
||||
// than the original, so they should get a new chance at being assigned.
|
||||
|
Loading…
Reference in New Issue
Block a user