mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +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:
@ -1194,8 +1194,6 @@ private:
|
|||||||
NewLoopID->replaceOperandWith(0, NewLoopID);
|
NewLoopID->replaceOperandWith(0, NewLoopID);
|
||||||
|
|
||||||
TheLoop->setLoopID(NewLoopID);
|
TheLoop->setLoopID(NewLoopID);
|
||||||
if (LoopID)
|
|
||||||
LoopID->replaceAllUsesWith(NewLoopID);
|
|
||||||
LoopID = NewLoopID;
|
LoopID = NewLoopID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user