From: Duncan P. N. Exon Smith Date: Wed, 3 Dec 2014 05:41:20 +0000 (+0000) Subject: LoopVectorize: Remove unnecessary RAUW X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a48bd07e5e5553c100e6e203cd4c2b22752a0e39;p=platform%2Fupstream%2Fllvm.git 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 --- diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index a73c59b..83e19f4 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -1194,8 +1194,6 @@ private: NewLoopID->replaceOperandWith(0, NewLoopID); TheLoop->setLoopID(NewLoopID); - if (LoopID) - LoopID->replaceAllUsesWith(NewLoopID); LoopID = NewLoopID; }