[PATCH] D57066: [TargetLowering] try harder to determine undef elements of vector binops

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 29 03:59:28 PST 2019


RKSimon added inline comments.


================
Comment at: lib/CodeGen/SelectionDAG/TargetLowering.cpp:1472
+    if (C0 && C1 && C0.getValueType() == EltVT && C1.getValueType() == EltVT)
+      if (DAG.getNode(BO.getOpcode(), SDLoc(BO), EltVT, C0, C1).isUndef())
+        KnownUndef.setBit(i);
----------------
What's the policy on creating nodes on the fly like this?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57066/new/

https://reviews.llvm.org/D57066





More information about the llvm-commits mailing list