Skip to content

Commit

Permalink
[DAG] SimplifyVBinOp - pull out repeated getValueType() call. NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
RKSimon committed Nov 15, 2021
1 parent 8835a19 commit 8658d20
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Expand Up @@ -22280,13 +22280,12 @@ static SDValue scalarizeBinOpOfSplats(SDNode *N, SelectionDAG &DAG) {

/// Visit a binary vector operation, like ADD.
SDValue DAGCombiner::SimplifyVBinOp(SDNode *N) {
assert(N->getValueType(0).isVector() &&
"SimplifyVBinOp only works on vectors!");
EVT VT = N->getValueType(0);
assert(VT.isVector() && "SimplifyVBinOp only works on vectors!");

SDValue LHS = N->getOperand(0);
SDValue RHS = N->getOperand(1);
SDValue Ops[] = {LHS, RHS};
EVT VT = N->getValueType(0);
unsigned Opcode = N->getOpcode();
SDNodeFlags Flags = N->getFlags();

Expand Down

0 comments on commit 8658d20

Please sign in to comment.