HomeSort by relevance Sort by last modified time
    Searched refs:TopLevelOpcode (Results 1 - 2 of 2) sorted by null

  /external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
InstructionCombining.cpp 370 Instruction::BinaryOps TopLevelOpcode = I.getOpcode(); // op
384 if (LeftDistributesOverRight(InnerOpcode, TopLevelOpcode))
392 Value *V = SimplifyBinOp(TopLevelOpcode, B, D, TD);
396 V = Builder->CreateBinOp(TopLevelOpcode, B, D, Op1->getName());
406 if (RightDistributesOverLeft(TopLevelOpcode, InnerOpcode))
414 Value *V = SimplifyBinOp(TopLevelOpcode, A, C, TD);
418 V = Builder->CreateBinOp(TopLevelOpcode, A, C, Op0->getName());
429 if (Op0 && RightDistributesOverLeft(Op0->getOpcode(), TopLevelOpcode)) {
436 if (Value *L = SimplifyBinOp(TopLevelOpcode, A, C, TD))
437 if (Value *R = SimplifyBinOp(TopLevelOpcode, B, C, TD))
    [all...]
  /external/llvm/lib/Transforms/InstCombine/
InstructionCombining.cpp 415 /// laws. This function tries to transform 'Op' based TopLevelOpcode to enable
417 /// with TopLevelOpcode == Instruction::Add and Op = SHL(X, 2), transforms
421 getBinOpsForFactorization(Instruction::BinaryOps TopLevelOpcode,
429 switch (TopLevelOpcode) {
463 Instruction::BinaryOps TopLevelOpcode = I.getOpcode();
469 if (LeftDistributesOverRight(InnerOpcode, TopLevelOpcode))
477 V = SimplifyBinOp(TopLevelOpcode, B, D, DL);
481 V = Builder->CreateBinOp(TopLevelOpcode, B, D, RHS->getName());
488 if (!SimplifiedInst && RightDistributesOverLeft(TopLevelOpcode, InnerOpcode))
496 V = SimplifyBinOp(TopLevelOpcode, A, C, DL)
    [all...]

Completed in 539 milliseconds