Home
last modified time | relevance | path

Searched refs:SafeC (Results 1 – 1 of 1) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineInternal.h224 auto *SafeC = ConstantExpr::getBinOpIdentity(Opcode, EltTy, IsRHSConstant); in getSafeVectorConstantForBinop() local
225 if (!SafeC) { in getSafeVectorConstantForBinop()
232 SafeC = ConstantInt::get(EltTy, 1); in getSafeVectorConstantForBinop()
235 SafeC = ConstantFP::get(EltTy, 1.0); in getSafeVectorConstantForBinop()
253 SafeC = Constant::getNullValue(EltTy); in getSafeVectorConstantForBinop()
260 assert(SafeC && "Must have safe constant for binop"); in getSafeVectorConstantForBinop()
265 Out[i] = isa<UndefValue>(C) ? SafeC : C; in getSafeVectorConstantForBinop()