From eb2e5f378c99f6c2c3bb7362507de40fa638ffed Mon Sep 17 00:00:00 2001 From: Dmitry Babokin Date: Thu, 18 Apr 2013 15:36:35 +0400 Subject: [PATCH] Comment fixes --- ctx.cpp | 4 ++-- opt.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ctx.cpp b/ctx.cpp index 5c8b16f2..11e25492 100644 --- a/ctx.cpp +++ b/ctx.cpp @@ -3187,9 +3187,9 @@ FunctionEmitContext::BroadcastValue(llvm::Value *v, llvm::Type* vecType, name = LLVMGetName(v, buf); } - // Generate the follwoing sequence: + // Generate the following sequence: // %name_init.i = insertelement <4 x i32> undef, i32 %val, i32 0 - // %name.i = shufflevector <4 x i32> %smear.0, <4 x i32> undef, + // %name.i = shufflevector <4 x i32> %name_init.i, <4 x i32> undef, // <4 x i32> zeroinitializer llvm::Value *undef1 = llvm::UndefValue::get(vecType); diff --git a/opt.cpp b/opt.cpp index f4ea620a..25156f8a 100644 --- a/opt.cpp +++ b/opt.cpp @@ -2458,9 +2458,9 @@ lGSToLoadStore(llvm::CallInst *callInst) { ptr->getName(), callInst); llvm::Value *scalarValue = new llvm::LoadInst(ptr, callInst->getName(), callInst); - // Generate the follwoing sequence: - // %name_init.i = insertelement <4 x i32> undef, i32 %val, i32 0 - // %name.i = shufflevector <4 x i32> %smear.0, <4 x i32> undef, + // Generate the following sequence: + // %name123 = insertelement <4 x i32> undef, i32 %val, i32 0 + // %name124 = shufflevector <4 x i32> %name123, <4 x i32> undef, // <4 x i32> zeroinitializer llvm::Value *undef1Value = llvm::UndefValue::get(callInst->getType()); llvm::Value *undef2Value = llvm::UndefValue::get(callInst->getType());