mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-14 15:38:57 +00:00
Eliminate dead code after remat.
This will remove the original def once it has no more uses. llvm-svn: 157104
This commit is contained in:
parent
719bee51d1
commit
7b47611be6
@ -870,7 +870,9 @@ bool RegisterCoalescer::reMaterializeTrivialDef(LiveInterval &SrcInt,
|
||||
++NumReMats;
|
||||
|
||||
// The source interval can become smaller because we removed a use.
|
||||
LIS->shrinkToUses(&SrcInt);
|
||||
LIS->shrinkToUses(&SrcInt, &DeadDefs);
|
||||
if (!DeadDefs.empty())
|
||||
eliminateDeadDefs();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user