Searched refs:LHSConv (Results 1 – 3 of 3) sorted by relevance
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 289 if (SExtInst *LHSConv = dyn_cast<SExtInst>(LHS)) { in visitAdd() local 293 ConstantExpr::getTrunc(RHSC, LHSConv->getOperand(0)->getType()); in visitAdd() 294 if (LHSConv->hasOneUse() && in visitAdd() 296 WillNotOverflowSignedAdd(LHSConv->getOperand(0), CI)) { in visitAdd() 298 Value *NewAdd = Builder->CreateNSWAdd(LHSConv->getOperand(0), in visitAdd() 309 if (LHSConv->getOperand(0)->getType()==RHSConv->getOperand(0)->getType()&& in visitAdd() 310 (LHSConv->hasOneUse() || RHSConv->hasOneUse()) && in visitAdd() 311 WillNotOverflowSignedAdd(LHSConv->getOperand(0), in visitAdd() 314 Value *NewAdd = Builder->CreateNSWAdd(LHSConv->getOperand(0), in visitAdd() 358 if (SIToFPInst *LHSConv = dyn_cast<SIToFPInst>(LHS)) { in visitFAdd() local [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 1290 if (SExtInst *LHSConv = dyn_cast<SExtInst>(LHS)) { in visitAdd() local 1293 if (LHSConv->hasOneUse()) { in visitAdd() 1295 ConstantExpr::getTrunc(RHSC, LHSConv->getOperand(0)->getType()); in visitAdd() 1297 willNotOverflowSignedAdd(LHSConv->getOperand(0), CI, I)) { in visitAdd() 1300 Builder.CreateNSWAdd(LHSConv->getOperand(0), CI, "addconv"); in visitAdd() 1311 if (LHSConv->getOperand(0)->getType() == in visitAdd() 1313 (LHSConv->hasOneUse() || RHSConv->hasOneUse()) && in visitAdd() 1314 willNotOverflowSignedAdd(LHSConv->getOperand(0), in visitAdd() 1317 Value *NewAdd = Builder.CreateNSWAdd(LHSConv->getOperand(0), in visitAdd() 1326 if (auto *LHSConv = dyn_cast<ZExtInst>(LHS)) { in visitAdd() local [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 1209 if (SExtInst *LHSConv = dyn_cast<SExtInst>(LHS)) { in visitAdd() local 1213 ConstantExpr::getTrunc(RHSC, LHSConv->getOperand(0)->getType()); in visitAdd() 1214 if (LHSConv->hasOneUse() && in visitAdd() 1216 WillNotOverflowSignedAdd(LHSConv->getOperand(0), CI, I)) { in visitAdd() 1218 Value *NewAdd = Builder->CreateNSWAdd(LHSConv->getOperand(0), in visitAdd() 1229 if (LHSConv->getOperand(0)->getType() == in visitAdd() 1231 (LHSConv->hasOneUse() || RHSConv->hasOneUse()) && in visitAdd() 1232 WillNotOverflowSignedAdd(LHSConv->getOperand(0), in visitAdd() 1235 Value *NewAdd = Builder->CreateNSWAdd(LHSConv->getOperand(0), in visitAdd() 1334 if (SIToFPInst *LHSConv = dyn_cast<SIToFPInst>(LHS)) { in visitFAdd() local [all …]
|