Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp151 Value *NewAnd = Builder.CreateAnd(X, AndRHS); in OptAndOp() local
152 NewAnd->takeName(Op); in OptAndOp()
153 return BinaryOperator::CreateXor(NewAnd, AndRHS); in OptAndOp()
516 Value *NewAnd = Builder.CreateAnd(A, NewMask); in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed() local
517 return Builder.CreateICmp(NewCC, NewAnd, NewMaskedValue); in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed()
655 Value *NewAnd = Builder.CreateAnd(A, NewOr); in foldLogOpOfMaskedICmps() local
660 return Builder.CreateICmp(NewCC, NewAnd, Zero); in foldLogOpOfMaskedICmps()
666 Value *NewAnd = Builder.CreateAnd(A, NewOr); in foldLogOpOfMaskedICmps() local
667 return Builder.CreateICmp(NewCC, NewAnd, NewOr); in foldLogOpOfMaskedICmps()
744 Value *NewAnd = Builder.CreateAnd(A, NewOr1); in foldLogOpOfMaskedICmps() local
[all …]
DInstCombineSimplifyDemanded.cpp302 Instruction *NewAnd = BinaryOperator::CreateAnd(I->getOperand(0), AndC); in SimplifyDemandedUseBits() local
303 InsertNewInstWith(NewAnd, *I); in SimplifyDemandedUseBits()
307 Instruction *NewXor = BinaryOperator::CreateXor(NewAnd, XorC); in SimplifyDemandedUseBits()
DInstCombineCompares.cpp1589 Value *NewAnd = Builder.CreateAnd(Shift->getOperand(0), NewShift); in foldICmpAndShift() local
1590 Cmp.setOperand(0, NewAnd); in foldICmpAndShift()
1627 Value *NewAnd = Builder.CreateAnd(W, ZextC2, And->getName()); in foldICmpAndConstConst() local
1628 return new ICmpInst(Cmp.getPredicate(), NewAnd, ZextC1); in foldICmpAndConstConst()
1666 Value *NewAnd = Builder.CreateAnd(A, NewOr, And->getName()); in foldICmpAndConstConst() local
1667 Cmp.setOperand(0, NewAnd); in foldICmpAndConstConst()
DInstCombineAddSub.cpp889 Value *NewAnd = Builder.CreateAnd(Z, *C1); in checkForNegativeOperand() local
890 return Builder.CreateSub(RHS, NewAnd, "sub"); in checkForNegativeOperand()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp215 Value *NewAnd = Builder->CreateAnd(X, AndRHS); in OptAndOp() local
216 NewAnd->takeName(Op); in OptAndOp()
217 return BinaryOperator::CreateXor(NewAnd, AndRHS); in OptAndOp()
724 Value *NewAnd = Builder->CreateAnd(A, NewOr); in foldLogOpOfMaskedICmps() local
729 return Builder->CreateICmp(NewCC, NewAnd, Zero); in foldLogOpOfMaskedICmps()
735 Value *NewAnd = Builder->CreateAnd(A, NewOr); in foldLogOpOfMaskedICmps() local
736 return Builder->CreateICmp(NewCC, NewAnd, NewOr); in foldLogOpOfMaskedICmps()
805 Value *NewAnd = Builder->CreateAnd(A, NewOr1); in foldLogOpOfMaskedICmps() local
806 return Builder->CreateICmp(NewCC, NewAnd, NewOr2); in foldLogOpOfMaskedICmps()
941 Value *NewAnd = Builder->CreateAnd(V, Low | AndCst->getValue()); in FoldAndOfICmps() local
[all …]
DInstCombineSimplifyDemanded.cpp393 Instruction *NewAnd = BinaryOperator::CreateAnd(I->getOperand(0), AndC); in SimplifyDemandedUseBits() local
394 InsertNewInstWith(NewAnd, *I); in SimplifyDemandedUseBits()
398 Instruction *NewXor = BinaryOperator::CreateXor(NewAnd, XorC); in SimplifyDemandedUseBits()
DInstCombineCompares.cpp1653 Value *NewAnd = in visitICmpInstWithInstAndIntCst() local
1656 NewAnd->takeName(LHSI); in visitICmpInstWithInstAndIntCst()
1657 return new ICmpInst(ICI.getPredicate(), NewAnd, in visitICmpInstWithInstAndIntCst()
1669 Value *NewAnd = in visitICmpInstWithInstAndIntCst() local
1672 NewAnd->takeName(LHSI); in visitICmpInstWithInstAndIntCst()
1673 return new ICmpInst(ICI.getPredicate(), NewAnd, in visitICmpInstWithInstAndIntCst()
1774 Value *NewAnd = in visitICmpInstWithInstAndIntCst() local
1777 ICI.setOperand(0, NewAnd); in visitICmpInstWithInstAndIntCst()
1814 Value *NewAnd = Builder->CreateAnd(X, NewOr, LHSI->getName()); in visitICmpInstWithInstAndIntCst() local
1815 ICI.setOperand(0, NewAnd); in visitICmpInstWithInstAndIntCst()
DInstCombineAddSub.cpp999 Value *NewAnd = Builder->CreateAnd(Z, *C1); in checkForNegativeOperand() local
1000 return Builder->CreateSub(RHS, NewAnd, "sub"); in checkForNegativeOperand()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp259 Value *NewAnd = Builder->CreateAnd(X, AndRHS); in OptAndOp() local
260 NewAnd->takeName(Op); in OptAndOp()
261 return BinaryOperator::CreateXor(NewAnd, AndRHS); in OptAndOp()
762 Value *NewAnd = Builder->CreateAnd(Val, Val2); in FoldAndOfICmps() local
763 return Builder->CreateICmp(LHSCC, NewAnd, LHSCst); in FoldAndOfICmps()
801 Value *NewAnd = Builder->CreateAnd(V, Low | AndCst->getValue()); in FoldAndOfICmps() local
804 return Builder->CreateICmp(LHSCC, NewAnd, NewVal); in FoldAndOfICmps()
1502 Value *NewAnd = Builder->CreateAnd(Val, Val2); in FoldOrOfICmps() local
1503 return Builder->CreateICmp(LHSCC, NewAnd, LHSCst); in FoldOrOfICmps()
DInstCombineCompares.cpp1090 Value *NewAnd = in visitICmpInstWithInstAndIntCst() local
1093 NewAnd->takeName(LHSI); in visitICmpInstWithInstAndIntCst()
1094 return new ICmpInst(ICI.getPredicate(), NewAnd, in visitICmpInstWithInstAndIntCst()
1106 Value *NewAnd = in visitICmpInstWithInstAndIntCst() local
1109 NewAnd->takeName(LHSI); in visitICmpInstWithInstAndIntCst()
1110 return new ICmpInst(ICI.getPredicate(), NewAnd, in visitICmpInstWithInstAndIntCst()
1196 Value *NewAnd = in visitICmpInstWithInstAndIntCst() local
1199 ICI.setOperand(0, NewAnd); in visitICmpInstWithInstAndIntCst()
DInstCombineSimplifyDemanded.cpp353 Instruction *NewAnd = BinaryOperator::CreateAnd(I->getOperand(0), AndC); in SimplifyDemandedUseBits() local
354 InsertNewInstWith(NewAnd, *I); in SimplifyDemandedUseBits()
358 Instruction *NewXor = BinaryOperator::CreateXor(NewAnd, XorC); in SimplifyDemandedUseBits()
DInstCombineCasts.cpp871 Value *NewAnd = Builder->CreateAnd(TI0, ZC); in visitZExt() local
872 return BinaryOperator::CreateXor(NewAnd, ZC); in visitZExt()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86ISelDAGToDAG.cpp1201 SDValue NewAnd = DAG.getNode(ISD::AND, DL, VT, X, NewMask); in foldMaskedShiftToScaledMask() local
1202 SDValue NewShift = DAG.getNode(ISD::SHL, DL, VT, NewAnd, Shift.getOperand(1)); in foldMaskedShiftToScaledMask()
1210 insertDAGNode(DAG, N, NewAnd); in foldMaskedShiftToScaledMask()
1215 AM.IndexReg = NewAnd; in foldMaskedShiftToScaledMask()
2754 SDValue NewAnd = CurDAG->getNode(ISD::AND, SDLoc(And), VT, And0, NewMask); in shrinkAndImmediate() local
2755 ReplaceNode(And, NewAnd.getNode()); in shrinkAndImmediate()
2756 SelectCode(NewAnd.getNode()); in shrinkAndImmediate()
DX86ISelLowering.cpp38384 SDValue NewAnd = DAG.getNode(ISD::AND, DL, IntVT, in combineVectorCompareAndMaskUnaryOp() local
38386 SDValue Res = DAG.getBitcast(VT, NewAnd); in combineVectorCompareAndMaskUnaryOp()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp4511 auto *NewAnd = dyn_cast<Instruction>( in optimizeLoadExt() local
4516 Load->replaceAllUsesWith(NewAnd); in optimizeLoadExt()
4517 NewAnd->setOperand(0, Load); in optimizeLoadExt()
4524 And->replaceAllUsesWith(NewAnd); in optimizeLoadExt()
5434 BinaryOperator *NewAnd = in sinkAndCmp() local
5438 CmpInst::Create(Cmp->getOpcode(), Cmp->getPredicate(), NewAnd, Zero, in sinkAndCmp()
/external/llvm/lib/Target/X86/
DX86ISelDAGToDAG.cpp983 SDValue NewAnd = DAG.getNode(ISD::AND, DL, VT, X, NewMask); in foldMaskedShiftToScaledMask() local
984 SDValue NewShift = DAG.getNode(ISD::SHL, DL, VT, NewAnd, Shift.getOperand(1)); in foldMaskedShiftToScaledMask()
992 insertDAGNode(DAG, N, NewAnd); in foldMaskedShiftToScaledMask()
997 AM.IndexReg = NewAnd; in foldMaskedShiftToScaledMask()
DX86ISelLowering.cpp30482 SDValue NewAnd = DAG.getNode(ISD::AND, DL, IntVT, in combineVectorCompareAndMaskUnaryOp() local
30484 SDValue Res = DAG.getBitcast(VT, NewAnd); in combineVectorCompareAndMaskUnaryOp()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DCodeGenPrepare.cpp5491 auto *NewAnd = dyn_cast<Instruction>( in optimizeLoadExt() local
5495 InsertedInsts.insert(NewAnd); in optimizeLoadExt()
5499 Load->replaceAllUsesWith(NewAnd); in optimizeLoadExt()
5500 NewAnd->setOperand(0, Load); in optimizeLoadExt()
5507 And->replaceAllUsesWith(NewAnd); in optimizeLoadExt()
/external/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp1333 SDValue NewAnd = DAG.getNode(ISD::AND, SDLoc(N0), OpVT, NotX, Y); in simplifySetCCWithAnd() local
1334 return DAG.getSetCC(DL, VT, NewAnd, Zero, Cond); in simplifySetCCWithAnd()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp1847 SDValue NewAnd = DAG.getNode(ISD::AND, SDLoc(N0), OpVT, NotX, Y); in simplifySetCCWithAnd() local
1848 return DAG.getSetCC(DL, VT, NewAnd, Zero, Cond); in simplifySetCCWithAnd()
/external/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp7634 SDValue NewAnd = DAG.getNode(ISD::AND, DL, IntVT, in performVectorCompareAndMaskUnaryOpCombine() local
7636 SDValue Res = DAG.getNode(ISD::BITCAST, DL, VT, NewAnd); in performVectorCompareAndMaskUnaryOpCombine()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp8792 SDValue NewAnd = DAG.getNode(ISD::AND, DL, IntVT, in performVectorCompareAndMaskUnaryOpCombine() local
8794 SDValue Res = DAG.getNode(ISD::BITCAST, DL, VT, NewAnd); in performVectorCompareAndMaskUnaryOpCombine()