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

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 12 13:41:47 PST 2020


RKSimon added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:148
+      if (EltSize < SplatVal.getBitWidth())
+        SplatVal = SplatVal.trunc(EltSize);
+      return true;
----------------
Is there a truncOrSelf we can use?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D91363



More information about the llvm-commits mailing list