forked from OSchip/llvm-project
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. llvm-svn: 223210
This commit is contained in:
parent
53ac6a04eb
commit
a48bd07e5e
|
@ -1194,8 +1194,6 @@ private:
|
|||
NewLoopID->replaceOperandWith(0, NewLoopID);
|
||||
|
||||
TheLoop->setLoopID(NewLoopID);
|
||||
if (LoopID)
|
||||
LoopID->replaceAllUsesWith(NewLoopID);
|
||||
LoopID = NewLoopID;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue