[PATCH] D53760: [SelectionDAG] Add FoldBUILD_VECTOR to simplify new BUILD_VECTOR nodes

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 29 12:59:11 PDT 2018


efriedma added inline comments.


================
Comment at: lib/CodeGen/SelectionDAG/SelectionDAG.cpp:3834
+  }
+  if (IsIdentity && IdentitySrc)
+    return IdentitySrc;
----------------
Is it actually possible for IdentitySrc to be null here?  Even if it is, does it make a difference?


Repository:
  rL LLVM

https://reviews.llvm.org/D53760





More information about the llvm-commits mailing list