[PATCH] D138883: [SelectionDAG][PowerPC] Memset reuse vector element for tail store

Nemanja Ivanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 28 20:00:55 PST 2022


nemanjai added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:7277
         Value = DAG.getNode(ISD::TRUNCATE, dl, VT, MemSetValue);
-      else
-        Value = getMemsetValue(Src, VT, DAG, dl);
+      else {
+        bool ConstFromVector = false;
----------------
Can we reduce the nesting here by converting this to `else if`?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D138883



More information about the llvm-commits mailing list