[PATCH] D80437: [CodeGen] Let computeKnownBits do something sensible for scalable vectors

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 26 11:58:48 PDT 2020


efriedma added a comment.

I think we should be able to make computeKnownBits work to some extent, but I guess it's not high priority at the moment.



================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:2253
+  APInt DemandedElts;
+  if (!VT.isScalableVector()) {
+    DemandedElts = VT.isVector()
----------------
If we're going to bail out anyway, can we bail out explicitly, instead of waiting for computeKnownBits to bail out?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D80437





More information about the llvm-commits mailing list