[PATCH] D108307: [DAG] CombineConsecutiveLoads - replace getABITypeAlign with allowsMemoryAccess (PR45116)

Pengfei Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 23 01:54:31 PDT 2021


pengfei added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:12573
+      DAG.areNonVolatileConsecutiveLoads(LD2, LD1, LD1Bytes, 1) &&
+      TLI.allowsMemoryAccess(*DAG.getContext(), DAG.getDataLayout(), VT,
+                             *LD1->getMemOperand()))
----------------
Is the type possible a vector? Is there performance penalty when we turn it into unaligned?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D108307



More information about the llvm-commits mailing list