CGLoopInfo: Use the MD_loop metadata kind from r264371, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 25 Mar 2016 00:38:14 +0000 (00:38 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 25 Mar 2016 00:38:14 +0000 (00:38 +0000)
Besides a small compile-time speedup, there should be no real
functionality change here.

llvm-svn: 264372

clang/lib/CodeGen/CGLoopInfo.cpp

index f10cfcf..08ed173 100644 (file)
@@ -258,7 +258,7 @@ void LoopInfoStack::InsertHelper(Instruction *I) const {
   if (TerminatorInst *TI = dyn_cast<TerminatorInst>(I)) {
     for (unsigned i = 0, ie = TI->getNumSuccessors(); i < ie; ++i)
       if (TI->getSuccessor(i) == L.getHeader()) {
-        TI->setMetadata("llvm.loop", L.getLoopID());
+        TI->setMetadata(llvm::LLVMContext::MD_loop, L.getLoopID());
         break;
       }
     return;