[llvm] r223210 - LoopVectorize: Remove unnecessary RAUW
Duncan P. N. Exon Smith
dexonsmith at apple.com
Tue Dec 2 21:41:20 PST 2014
Author: dexonsmith
Date: Tue Dec 2 23:41:20 2014
New Revision: 223210
URL: http://llvm.org/viewvc/llvm-project?rev=223210&view=rev
Log:
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.
Modified:
llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp?rev=223210&r1=223209&r2=223210&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Tue Dec 2 23:41:20 2014
@@ -1194,8 +1194,6 @@ private:
NewLoopID->replaceOperandWith(0, NewLoopID);
TheLoop->setLoopID(NewLoopID);
- if (LoopID)
- LoopID->replaceAllUsesWith(NewLoopID);
LoopID = NewLoopID;
}
More information about the llvm-commits
mailing list