Home
last modified time | relevance | path

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

/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineNegator.cpp379 SmallVector<Value *, 2> NegatedOps, NonNegatedOps; in visitImpl() local
383 NegatedOps.emplace_back(NegOp); // Successfully negated operand! in visitImpl()
392 assert((NegatedOps.size() + NonNegatedOps.size()) == 2 && in visitImpl()
395 if (NegatedOps.size() == 2) // Then we get to keep the `add`! in visitImpl()
396 return Builder.CreateAdd(NegatedOps[0], NegatedOps[1], in visitImpl()
403 return Builder.CreateSub(NegatedOps[0], NonNegatedOps[0], in visitImpl()