[PATCH] D126532: [SVE] Add a DAG combiner fold to visitADD for vscale with truncate

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 28 15:40:35 PDT 2022


craig.topper added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:2634
+      (N1.getOpcode() == ISD::TRUNCATE) &&
+      (N1.getOperand(0).getOpcode() == ISD::VSCALE)) {
+    EVT VSVT = N1.getOperand(0).getValueType();
----------------
Do you need to check that both vscales have the same types?


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

https://reviews.llvm.org/D126532



More information about the llvm-commits mailing list