diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-12-03 05:41:20 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-12-03 05:41:20 +0000 |
commit | a48bd07e5e5553c100e6e203cd4c2b22752a0e39 (patch) | |
tree | 402cd43fa081036f58c004e4932ed1e67a6442f2 | |
parent | 53ac6a04eb2e212ef7446400ef9af323cc0902b0 (diff) | |
download | bcm5719-llvm-a48bd07e5e5553c100e6e203cd4c2b22752a0e39.tar.gz bcm5719-llvm-a48bd07e5e5553c100e6e203cd4c2b22752a0e39.zip |
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
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index a73c59bd4f1..83e19f406de 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; } |