mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 00:39:36 +00:00
LoopVectorize: Remove unnecessary RAUW
Remove an unnecessary `MDNode::replaceAllUsesWith()`. In the preceding line, `TheLoop->setLoopID()` visits all backedges and sets the new loop ID. This sufficiently updates the loop metadata. Metadata RAUW is going away as part of PR21532. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223210 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a4ec31ed52
commit
5ed8a767a0
@ -1194,8 +1194,6 @@ private:
|
||||
NewLoopID->replaceOperandWith(0, NewLoopID);
|
||||
|
||||
TheLoop->setLoopID(NewLoopID);
|
||||
if (LoopID)
|
||||
LoopID->replaceAllUsesWith(NewLoopID);
|
||||
LoopID = NewLoopID;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user