[PATCH] D91363: [SVE][CodeGen] Extend isConstantSplatValue to support ISD::SPLAT_VECTOR

Kerry McLaughlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 13 10:48:26 PST 2020


kmclaughlin marked an inline comment as done.
kmclaughlin added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:148
+      if (EltSize < SplatVal.getBitWidth())
+        SplatVal = SplatVal.trunc(EltSize);
+      return true;
----------------
RKSimon wrote:
> Is there a truncOrSelf we can use?
There was no truncOrSelf that I could use here, but I've added this in a separate patch (D91445)


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

https://reviews.llvm.org/D91363



More information about the llvm-commits mailing list