LLVM  10.0.0
Functions | Variables
SimplifyLibCalls.cpp File Reference
#include "llvm/Transforms/Utils/SimplifyLibCalls.h"
#include "llvm/ADT/APSInt.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/Triple.h"
#include "llvm/Analysis/BlockFrequencyInfo.h"
#include "llvm/Analysis/ConstantFolding.h"
#include "llvm/Analysis/OptimizationRemarkEmitter.h"
#include "llvm/Analysis/ProfileSummaryInfo.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
#include "llvm/Transforms/Utils/Local.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/Analysis/CaptureTracking.h"
#include "llvm/Analysis/Loads.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/PatternMatch.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/KnownBits.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Transforms/Utils/BuildLibCalls.h"
#include "llvm/Transforms/Utils/SizeOpts.h"
Include dependency graph for SimplifyLibCalls.cpp:

Go to the source code of this file.

Functions

static bool ignoreCallingConv (LibFunc Func)
 
static bool isCallingConvCCompatible (CallInst *CI)
 
static bool isOnlyUsedInEqualityComparison (Value *V, Value *With)
 Return true if it is only used in equality comparisons with With. More...
 
static bool callHasFloatingPointArgument (const CallInst *CI)
 
static bool callHasFP128Argument (const CallInst *CI)
 
static Value * convertStrToNumber (CallInst *CI, StringRef &Str, int64_t Base)
 
static bool isLocallyOpenedFile (Value *File, CallInst *CI, IRBuilder<> &B, const TargetLibraryInfo *TLI)
 
static bool isOnlyUsedInComparisonWithZero (Value *V)
 
static bool canTransformToMemCmp (CallInst *CI, Value *Str, uint64_t Len, const DataLayout &DL)
 
static void annotateDereferenceableBytes (CallInst *CI, ArrayRef< unsigned > ArgNos, uint64_t DereferenceableBytes)
 
static void annotateNonNullBasedOnAccess (CallInst *CI, ArrayRef< unsigned > ArgNos)
 
static void annotateNonNullAndDereferenceable (CallInst *CI, ArrayRef< unsigned > ArgNos, Value *Size, const DataLayout &DL)
 
static Value * optimizeMemCmpConstantSize (CallInst *CI, Value *LHS, Value *RHS, uint64_t Len, IRBuilder<> &B, const DataLayout &DL)
 
static Value * replaceUnaryCall (CallInst *CI, IRBuilder<> &B, Intrinsic::ID IID)
 
static Value * valueHasFloatPrecision (Value *Val)
 Return a variant of Val with float type. More...
 
static Value * optimizeDoubleFP (CallInst *CI, IRBuilder<> &B, bool isBinary, bool isPrecise=false)
 Shrink double -> float functions. More...
 
static Value * optimizeUnaryDoubleFP (CallInst *CI, IRBuilder<> &B, bool isPrecise=false)
 Shrink double -> float for unary functions. More...
 
static Value * optimizeBinaryDoubleFP (CallInst *CI, IRBuilder<> &B, bool isPrecise=false)
 Shrink double -> float for binary functions. More...
 
static Value * optimizeTrigReflections (CallInst *Call, LibFunc Func, IRBuilder<> &B)
 
static Value * getPow (Value *InnerChain[33], unsigned Exp, IRBuilder<> &B)
 
static Value * getIntToFPVal (Value *I2F, IRBuilder<> &B)
 
static Value * getSqrtCall (Value *V, AttributeList Attrs, bool NoErrno, Module *M, IRBuilder<> &B, const TargetLibraryInfo *TLI)
 
static Value * createPowWithIntegerExponent (Value *Base, Value *Expo, Module *M, IRBuilder<> &B)
 
static bool isTrigLibCall (CallInst *CI)
 
static void insertSinCosCall (IRBuilder<> &B, Function *OrigCallee, Value *Arg, bool UseFloat, Value *&Sin, Value *&Cos, Value *&SinCos)
 
static bool isReportingError (Function *Callee, CallInst *CI, int StreamArg)
 

Variables

static cl::opt< bool > EnableUnsafeFPShrink ("enable-double-float-shrink", cl::Hidden, cl::init(false), cl::desc("Enable unsafe double to float " "shrinking for math lib calls"))
 

Function Documentation

◆ annotateDereferenceableBytes()

static void annotateDereferenceableBytes ( CallInst *  CI,
ArrayRef< unsigned >  ArgNos,
uint64_t  DereferenceableBytes 
)
static

◆ annotateNonNullAndDereferenceable()

static void annotateNonNullAndDereferenceable ( CallInst *  CI,
ArrayRef< unsigned >  ArgNos,
Value *  Size,
const DataLayout &  DL 
)
static

Definition at line 235 of file SimplifyLibCalls.cpp.

References llvm::CallBase::addParamAttr(), llvm::AttributeList::addParamAttributes(), annotateDereferenceableBytes(), annotateNonNullBasedOnAccess(), llvm::ConstantDataArraySlice::Array, B, llvm::StringRef::begin(), llvm::tgtok::Bits, C, Callee, canTransformToMemCmp(), llvm::castToCStr(), llvm::StringRef::compare(), llvm::computeKnownBits(), llvm::IRBuilder< T, Inserter >::CreateAnd(), llvm::IRBuilder< T, Inserter >::CreateBitCast(), llvm::IRBuilder< T, Inserter >::CreateConstInBoundsGEP1_64(), llvm::IRBuilder< T, Inserter >::CreateGEP(), llvm::IRBuilder< T, Inserter >::CreateICmp(), llvm::IRBuilder< T, Inserter >::CreateInBoundsGEP(), llvm::IRBuilder< T, Inserter >::CreateIntToPtr(), llvm::IRBuilder< T, Inserter >::CreateIsNotNull(), llvm::IRBuilder< T, Inserter >::CreateLoad(), llvm::IRBuilderBase::CreateMemCpy(), llvm::IRBuilderBase::CreateMemSet(), llvm::IRBuilder< T, Inserter >::CreateNeg(), llvm::IRBuilder< T, Inserter >::CreateSelect(), llvm::IRBuilder< T, Inserter >::CreateSExtOrTrunc(), llvm::IRBuilder< T, Inserter >::CreateShl(), llvm::IRBuilder< T, Inserter >::CreateSub(), llvm::IRBuilder< T, Inserter >::CreateZExt(), llvm::IRBuilder< T, Inserter >::CreateZExtOrTrunc(), llvm::dyn_cast(), E, llvm::emitMemChr(), llvm::emitMemCmp(), llvm::emitStrChr(), llvm::emitStrDup(), llvm::emitStrLen(), llvm::emitStrNCmp(), llvm::StringRef::empty(), llvm::StringRef::end(), llvm::StringRef::find(), llvm::StringRef::find_first_not_of(), llvm::StringRef::find_first_of(), llvm::APInt::flipAllBits(), GEP, llvm::ConstantInt::get(), llvm::CallBase::getArgOperand(), llvm::CallBase::getAttributes(), llvm::CallBase::getCalledFunction(), llvm::getConstantDataArrayInfo(), llvm::getConstantStringInfo(), llvm::Value::getContext(), llvm::ConstantDataSequential::getElementAsInteger(), llvm::Function::getFunctionType(), llvm::IRBuilderBase::getInt(), llvm::IRBuilderBase::getInt64(), llvm::IRBuilderBase::getInt8(), llvm::IRBuilderBase::getInt8Ty(), llvm::IRBuilderBase::getIntN(), llvm::IRBuilderBase::getIntNTy(), llvm::Instruction::getModule(), llvm::Constant::getNullValue(), llvm::User::getOperand(), llvm::AttributeList::getParamAttributes(), llvm::FunctionType::getParamType(), llvm::CmpInst::getPredicate(), llvm::ConstantInt::getSExtValue(), llvm::GetStringLength(), llvm::Value::getType(), llvm::ConstantInt::getZExtValue(), llvm::APInt::getZExtValue(), I, llvm::CmpInst::ICMP_ULT, llvm::isGEPBasedOnPointerToString(), llvm::Type::isIntegerTy(), llvm::isKnownNonZero(), llvm::APInt::isNonNegative(), isOnlyUsedInEqualityComparison(), llvm::isOnlyUsedInZeroEqualityComparison(), llvm::ConstantInt::isZero(), llvm::ConstantDataArraySlice::Length, llvm::PatternMatch::m_APInt(), llvm::PatternMatch::m_Select(), llvm::PatternMatch::m_Value(), llvm::PatternMatch::match(), llvm::max(), llvm::NextPowerOf2(), llvm::Align::None(), llvm::StringRef::npos, llvm::ConstantDataArraySlice::Offset, llvm::StringRef::rfind(), llvm::CallBase::setAttributes(), llvm::APInt::setBit(), SI, Size, llvm::StringRef::size(), llvm::StringRef::substr(), llvm::APInt::ule(), llvm::Value::user_begin(), llvm::Value::user_end(), X, Y, and llvm::KnownBits::Zero.

Referenced by optimizeMemCmpConstantSize().

◆ annotateNonNullBasedOnAccess()

static void annotateNonNullBasedOnAccess ( CallInst *  CI,
ArrayRef< unsigned >  ArgNos 
)
static

◆ callHasFloatingPointArgument()

static bool callHasFloatingPointArgument ( const CallInst *  CI)
static

Definition at line 104 of file SimplifyLibCalls.cpp.

References llvm::any_of(), and llvm::User::operands().

Referenced by isReportingError().

◆ callHasFP128Argument()

static bool callHasFP128Argument ( const CallInst *  CI)
static

Definition at line 110 of file SimplifyLibCalls.cpp.

References llvm::any_of(), and llvm::User::operands().

Referenced by isReportingError().

◆ canTransformToMemCmp()

static bool canTransformToMemCmp ( CallInst *  CI,
Value *  Str,
uint64_t  Len,
const DataLayout &  DL 
)
static

◆ convertStrToNumber()

static Value* convertStrToNumber ( CallInst *  CI,
StringRef &  Str,
int64_t  Base 
)
static

Definition at line 116 of file SimplifyLibCalls.cpp.

◆ createPowWithIntegerExponent()

static Value* createPowWithIntegerExponent ( Value *  Base,
Value *  Expo,
Module *  M,
IRBuilder<> &  B 
)
static

Definition at line 1678 of file SimplifyLibCalls.cpp.

References llvm::abs(), llvm::APFloat::add(), Arg, llvm::AMDGPU::HSAMD::Kernel::Key::Args, llvm::AMDGPU::HSAMD::Kernel::Key::Attrs, B, Callee, llvm::APFloatBase::cmpLessThan, llvm::APFloat::convertToInteger(), llvm::IRBuilder< T, Inserter >::CreateCall(), llvm::IRBuilder< T, Inserter >::CreateFDiv(), llvm::IRBuilder< T, Inserter >::CreateFMul(), llvm::CallBase::doesNotAccessMemory(), llvm::dyn_cast(), llvm::numbers::e, llvm::emitBinaryFloatFnCall(), llvm::emitUnaryFloatFnCall(), F(), llvm::ConstantInt::get(), llvm::ConstantFP::get(), llvm::CallBase::getArgOperand(), llvm::Function::getAttributes(), llvm::CallBase::getCalledFunction(), llvm::Intrinsic::getDeclaration(), llvm::FastMathFlags::getFast(), llvm::Instruction::getFastMathFlags(), llvm::IRBuilderBase::getInt32Ty(), llvm::Function::getIntrinsicID(), llvm::CallBase::getIntrinsicID(), getIntToFPVal(), llvm::Instruction::getModule(), llvm::Value::getName(), llvm::Instruction::getOpcode(), llvm::User::getOperand(), llvm::GlobalValue::getParent(), getPow(), llvm::Type::getScalarType(), llvm::APFloat::getSemantics(), getSqrtCall(), llvm::Value::getType(), llvm::Instruction::hasApproxFunc(), llvm::hasFloatFn(), llvm::Value::hasOneUse(), I, llvm::APFloatBase::IEEEdouble(), llvm::Type::isDoubleTy(), llvm::Instruction::isFast(), llvm::Type::isFloatTy(), llvm::APFloat::isInteger(), llvm::APFloat::isNegative(), llvm::log2(), llvm::PatternMatch::m_AnyZeroFP(), llvm::PatternMatch::m_APFloat(), llvm::PatternMatch::m_FMul(), llvm::PatternMatch::m_FPOne(), llvm::PatternMatch::m_SpecificFP(), llvm::PatternMatch::m_Value(), llvm::PatternMatch::match(), llvm::maxnum(), llvm::minnum(), llvm::Mod, Name, llvm::NotLibFunc, llvm::APFloatBase::opOK, optimizeBinaryDoubleFP(), optimizeUnaryDoubleFP(), llvm::MipsISD::Ret, llvm::APFloatBase::rmNearestTiesToEven, llvm::APFloatBase::rmTowardZero, llvm::IRBuilderBase::setFastMathFlags(), llvm::FastMathFlags::setNoSignedZeros(), and llvm::StringRef::startswith().

◆ getIntToFPVal()

static Value* getIntToFPVal ( Value *  I2F,
IRBuilder<> &  B 
)
static

Definition at line 1456 of file SimplifyLibCalls.cpp.

References llvm::lltok::APFloat, llvm::AMDGPU::HSAMD::Kernel::Key::Attrs, B, llvm::APFloat::convert(), llvm::APFloat::convertToDouble(), llvm::APFloat::convertToFloat(), llvm::APFloat::convertToInteger(), llvm::IRBuilder< T, Inserter >::CreateCall(), llvm::IRBuilder< T, Inserter >::CreateFMul(), llvm::IRBuilder< T, Inserter >::CreateSExt(), llvm::IRBuilder< T, Inserter >::CreateZExt(), llvm::CallBase::doesNotAccessMemory(), llvm::dyn_cast(), llvm::emitBinaryFloatFnCall(), llvm::emitUnaryFloatFnCall(), llvm::ConstantFP::get(), llvm::CallBase::getArgOperand(), llvm::Function::getAttributes(), llvm::CallBase::getAttributes(), llvm::CallBase::getCalledFunction(), llvm::Intrinsic::getDeclaration(), llvm::IRBuilderBase::getInt32Ty(), llvm::Instruction::getModule(), llvm::Value::getName(), llvm::Type::getPrimitiveSizeInBits(), llvm::APFloat::getSemantics(), llvm::Value::getType(), llvm::Instruction::hasApproxFunc(), llvm::hasFloatFn(), llvm::Instruction::hasNoInfs(), llvm::Instruction::hasNoNaNs(), llvm::Value::hasOneUse(), llvm::Type::isDoubleTy(), llvm::Instruction::isFast(), llvm::Type::isFloatTy(), llvm::APFloat::isInteger(), llvm::APFloat::isNegative(), llvm::APFloat::isNormal(), llvm::APInt::isPowerOf2(), llvm::log2(), llvm::APInt::logBase2(), llvm::PatternMatch::m_APFloat(), llvm::PatternMatch::m_SpecificFP(), llvm::PatternMatch::match(), llvm::Mod, N, llvm::APFloatBase::opOK, and llvm::APFloatBase::rmTowardZero.

Referenced by createPowWithIntegerExponent().

◆ getPow()

static Value* getPow ( Value *  InnerChain[33],
unsigned  Exp,
IRBuilder<> &  B 
)
static

◆ getSqrtCall()

static Value* getSqrtCall ( Value *  V,
AttributeList  Attrs,
bool  NoErrno,
Module *  M,
IRBuilder<> &  B,
const TargetLibraryInfo *  TLI 
)
static

◆ ignoreCallingConv()

static bool ignoreCallingConv ( LibFunc  Func)
static

◆ insertSinCosCall()

static void insertSinCosCall ( IRBuilder<> &  B,
Function *  OrigCallee,
Value *  Arg,
bool  UseFloat,
Value *&  Sin,
Value *&  Cos,
Value *&  SinCos 
)
static

◆ isCallingConvCCompatible()

static bool isCallingConvCCompatible ( CallInst *  CI)
static

◆ isLocallyOpenedFile()

static bool isLocallyOpenedFile ( Value *  File,
CallInst *  CI,
IRBuilder<> &  B,
const TargetLibraryInfo *  TLI 
)
static

◆ isOnlyUsedInComparisonWithZero()

static bool isOnlyUsedInComparisonWithZero ( Value *  V)
static

Definition at line 163 of file SimplifyLibCalls.cpp.

References C, and llvm::Value::users().

Referenced by canTransformToMemCmp().

◆ isOnlyUsedInEqualityComparison()

static bool isOnlyUsedInEqualityComparison ( Value *  V,
Value *  With 
)
static

Return true if it is only used in equality comparisons with With.

Definition at line 93 of file SimplifyLibCalls.cpp.

References llvm::Value::users().

Referenced by annotateNonNullAndDereferenceable().

◆ isReportingError()

static bool isReportingError ( Function *  Callee,
CallInst *  CI,
int  StreamArg 
)
static

Definition at line 2354 of file SimplifyLibCalls.cpp.

References annotateNonNullBasedOnAccess(), assert(), B, llvm::AMDGPUISD::BFI, callHasFloatingPointArgument(), callHasFP128Argument(), llvm::castToCStr(), llvm::Instruction::clone(), llvm::IRBuilder< T, Inserter >::CreateAdd(), llvm::IRBuilder< T, Inserter >::CreateGEP(), llvm::IRBuilderBase::CreateGlobalString(), llvm::IRBuilder< T, Inserter >::CreateIntCast(), llvm::IRBuilder< T, Inserter >::CreateLoad(), llvm::IRBuilderBase::CreateMemCpy(), llvm::IRBuilderBase::CreateMemMove(), llvm::IRBuilder< T, Inserter >::CreateStore(), llvm::IRBuilder< T, Inserter >::CreateTrunc(), llvm::StringRef::drop_back(), llvm::dyn_cast(), llvm::emitFGetCUnlocked(), llvm::emitFGetSUnlocked(), llvm::emitFPutC(), llvm::emitFPutCUnlocked(), llvm::emitFPutS(), llvm::emitFPutSUnlocked(), llvm::emitFReadUnlocked(), llvm::emitFWrite(), llvm::emitFWriteUnlocked(), llvm::emitPutChar(), llvm::emitPutS(), llvm::emitStrLen(), llvm::StringRef::empty(), llvm::StringRef::find(), llvm::ConstantInt::get(), llvm::CallBase::getArgOperand(), llvm::Function::getAttributes(), llvm::CallBase::getCalledFunction(), llvm::getConstantStringInfo(), llvm::Value::getContext(), llvm::Instruction::getFunction(), llvm::Function::getFunctionType(), llvm::IRBuilderBase::GetInsertBlock(), llvm::IRBuilderBase::getInt32(), llvm::IRBuilderBase::getInt8(), llvm::IRBuilderBase::getInt8Ty(), llvm::Value::getName(), llvm::CallBase::getNumArgOperands(), llvm::User::getOperand(), llvm::Module::getOrInsertFunction(), llvm::Instruction::getParent(), llvm::BasicBlock::getParent(), llvm::GlobalValue::getParent(), llvm::LoadInst::getPointerOperand(), llvm::GetStringLength(), llvm::Value::getType(), llvm::ConstantInt::getZExtValue(), llvm::Function::hasOptSize(), ignoreCallingConv(), llvm::IRBuilder< T, Inserter >::Insert(), llvm::IRPass, isCallingConvCCompatible(), llvm::GlobalValue::isDeclaration(), llvm::Type::isIntegerTy(), llvm::isKnownNonZero(), isLocallyOpenedFile(), llvm::Type::isPointerTy(), llvm::CallBase::isStrictFP(), N, llvm::Align::None(), llvm::StringRef::npos, optimizeBinaryDoubleFP(), optimizeTrigReflections(), optimizeUnaryDoubleFP(), replaceUnaryCall(), round(), llvm::CallBase::setCalledFunction(), llvm::shouldOptimizeForSize(), Size, llvm::StringRef::size(), and llvm::Value::use_empty().

◆ isTrigLibCall()

static bool isTrigLibCall ( CallInst *  CI)
static

Definition at line 2111 of file SimplifyLibCalls.cpp.

References llvm::CallBase::hasFnAttr().

Referenced by insertSinCosCall().

◆ optimizeBinaryDoubleFP()

static Value* optimizeBinaryDoubleFP ( CallInst *  CI,
IRBuilder<> &  B,
bool  isPrecise = false 
)
static

◆ optimizeDoubleFP()

static Value* optimizeDoubleFP ( CallInst *  CI,
IRBuilder<> &  B,
bool  isBinary,
bool  isPrecise = false 
)
static

◆ optimizeMemCmpConstantSize()

static Value* optimizeMemCmpConstantSize ( CallInst *  CI,
Value *  LHS,
Value *  RHS,
uint64_t  Len,
IRBuilder<> &  B,
const DataLayout &  DL 
)
static

Definition at line 990 of file SimplifyLibCalls.cpp.

References annotateNonNullAndDereferenceable(), B, llvm::castToCStr(), llvm::ConstantFoldLoadFromConstPtr(), llvm::IRBuilder< T, Inserter >::CreateBitCast(), llvm::IRBuilder< T, Inserter >::CreateICmpNE(), llvm::IRBuilder< T, Inserter >::CreateInBoundsGEP(), llvm::IRBuilder< T, Inserter >::CreateIntCast(), llvm::IRBuilder< T, Inserter >::CreateLoad(), llvm::IRBuilderBase::CreateMemCpy(), llvm::IRBuilderBase::CreateMemMove(), llvm::IRBuilderBase::CreateMemSet(), llvm::IRBuilder< T, Inserter >::CreateSub(), llvm::IRBuilder< T, Inserter >::CreateZExt(), llvm::StringRef::data(), llvm::dyn_cast(), llvm::emitBCmp(), llvm::emitCalloc(), llvm::emitMalloc(), llvm::IntegerType::get(), llvm::ConstantInt::get(), llvm::CallBase::getArgOperand(), llvm::CallBase::getAttributes(), llvm::ConstantExpr::getBitCast(), llvm::getConstantStringInfo(), llvm::BasicBlock::getContext(), llvm::Value::getContext(), llvm::IRBuilderBase::GetInsertBlock(), llvm::IRBuilderBase::getInt8Ty(), llvm::DataLayout::getIntPtrType(), llvm::getKnownAlignment(), llvm::Constant::getNullValue(), llvm::Type::getPointerAddressSpace(), llvm::Type::getPointerTo(), llvm::DataLayout::getPrefTypeAlignment(), llvm::ConstantInt::getSExtValue(), llvm::Value::getType(), llvm::DataLayout::isLegalInteger(), llvm::isOnlyUsedInZeroEqualityComparison(), memcmp, N, llvm::Align::None(), llvm::StringRef::npos, llvm::MipsISD::Ret, llvm::CallBase::setAttributes(), llvm::IRBuilderBase::SetInsertPoint(), Size, llvm::StringRef::size(), and llvm::Value::use_empty().

◆ optimizeTrigReflections()

static Value* optimizeTrigReflections ( CallInst *  Call,
LibFunc  Func,
IRBuilder<> &  B 
)
static

◆ optimizeUnaryDoubleFP()

static Value* optimizeUnaryDoubleFP ( CallInst *  CI,
IRBuilder<> &  B,
bool  isPrecise = false 
)
static

Shrink double -> float for unary functions.

Definition at line 1355 of file SimplifyLibCalls.cpp.

References optimizeDoubleFP().

Referenced by createPowWithIntegerExponent(), and isReportingError().

◆ replaceUnaryCall()

static Value* replaceUnaryCall ( CallInst *  CI,
IRBuilder<> &  B,
Intrinsic::ID  IID 
)
static

◆ valueHasFloatPrecision()

static Value* valueHasFloatPrecision ( Value *  Val)
static

Return a variant of Val with float type.

Currently this works in two cases: If Val is an FPExtension of a float value to something bigger, simply return the operand. If Val is a ConstantFP but can be converted to a float ConstantFP without loss of precision do so.

Definition at line 1279 of file SimplifyLibCalls.cpp.

References llvm::APFloat::convert(), F(), llvm::ConstantFP::get(), llvm::Value::getType(), llvm::APFloatBase::IEEEsingle(), llvm::Type::isFloatTy(), and llvm::APFloatBase::rmNearestTiesToEven.

Referenced by optimizeDoubleFP().

Variable Documentation

◆ EnableUnsafeFPShrink

cl::opt<bool> EnableUnsafeFPShrink("enable-double-float-shrink", cl::Hidden, cl::init(false), cl::desc("Enable unsafe double to float " "shrinking for math lib calls"))
static