From fade1cdf1d5b7ee006aeeec79d5ae4e54e098c0b Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Fri, 23 Sep 2011 16:03:35 -0700 Subject: [PATCH] Pretty much all conversions to varying double are slow, so don't bother warning about them. --- expr.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/expr.cpp b/expr.cpp index 22b2f0cc..81e3d10b 100644 --- a/expr.cpp +++ b/expr.cpp @@ -4114,7 +4114,7 @@ lTypeConvAtomic(FunctionEmitContext *ctx, llvm::Value *exprVal, case AtomicType::TYPE_BOOL: if (fromType->IsVaryingType() && LLVMTypes::BoolVectorType == LLVMTypes::Int32VectorType) - // If we have a bool vector of i32 element,s first truncate + // If we have a bool vector of i32 elements, first truncate // down to a single bit exprVal = ctx->TruncInst(exprVal, LLVMTypes::Int1VectorType, "bool_to_i1"); // And then do an unisgned int->float cast @@ -4174,9 +4174,6 @@ lTypeConvAtomic(FunctionEmitContext *ctx, llvm::Value *exprVal, case AtomicType::TYPE_UINT16: case AtomicType::TYPE_UINT32: case AtomicType::TYPE_UINT64: - if (fromType->IsVaryingType()) - PerformanceWarning(pos, "Conversion from unsigned int64 to float is slow. " - "Use \"int64\" if possible"); cast = ctx->CastInst(llvm::Instruction::UIToFP, // unsigned int exprVal, targetType, "uint2double"); break;