diff options
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/CodeGen/CGLoopInfo.cpp | 2 | ||||
| -rw-r--r-- | clang/lib/CodeGen/CGLoopInfo.h | 2 | ||||
| -rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGLoopInfo.cpp b/clang/lib/CodeGen/CGLoopInfo.cpp index 1bc6d20158f..a273f1d4dda 100644 --- a/clang/lib/CodeGen/CGLoopInfo.cpp +++ b/clang/lib/CodeGen/CGLoopInfo.cpp @@ -39,7 +39,7 @@ static MDNode *createMetadata(LLVMContext &Ctx, const LoopAttributes &Attrs) { // Setting vectorizer.unroll if (Attrs.VectorizerUnroll > 0) { - Value *Vals[] = { MDString::get(Ctx, "llvm.loop.vectorize.unroll"), + Value *Vals[] = { MDString::get(Ctx, "llvm.loop.interleave.count"), ConstantInt::get(Type::getInt32Ty(Ctx), Attrs.VectorizerUnroll) }; Args.push_back(MDNode::get(Ctx, Vals)); diff --git a/clang/lib/CodeGen/CGLoopInfo.h b/clang/lib/CodeGen/CGLoopInfo.h index 24613683363..2f6f172e047 100644 --- a/clang/lib/CodeGen/CGLoopInfo.h +++ b/clang/lib/CodeGen/CGLoopInfo.h @@ -46,7 +46,7 @@ struct LoopAttributes { /// \brief llvm.loop.vectorize.width unsigned VectorizerWidth; - /// \brief llvm.loop.vectorize.unroll + /// \brief llvm.loop.interleave.count unsigned VectorizerUnroll; }; diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index f36111607d8..c2b64a7662b 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -592,7 +592,7 @@ void CodeGenFunction::EmitCondBrHints(llvm::LLVMContext &Context, break; case LoopHintAttr::Interleave: case LoopHintAttr::InterleaveCount: - MetadataName = "llvm.loop.vectorize.unroll"; + MetadataName = "llvm.loop.interleave.count"; break; case LoopHintAttr::Unroll: MetadataName = "llvm.loop.unroll.enable"; |

