[PATCH] D35563: [DAG] Optimize away degenerate INSERT_VECTOR_ELT nodes.

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 20 04:03:15 PDT 2017


RKSimon accepted this revision.
RKSimon added a comment.
This revision is now accepted and ready to land.

LGTM with one minor



================
Comment at: lib/CodeGen/SelectionDAG/DAGCombiner.cpp:13493
+  if (InVal.getOpcode() == ISD::EXTRACT_VECTOR_ELT &&
+      InVec == InVal->getOperand(0) && EltNo == InVal->getOperand(1))
+    return InVec;
----------------
Use InVal.getOperand(0) and InVal.getOperand(1) directly?


https://reviews.llvm.org/D35563





More information about the llvm-commits mailing list