[PATCH] D106447: [DAGCombine] DAGTypeLegalizer::GenWidenVectorLoads(): make use of dereferenceability knowledge

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 21 14:13:02 PDT 2021


lebedev.ri added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp:5336
+      NumDereferenceableBytes = std::max<unsigned>(
+          NumDereferenceableBytes, cast<LoadSDNode>(LdOp)->getAlignment());
+    } else
----------------
lebedev.ri wrote:
> Ugh, actually, this is still not quite right, because it should be the alignment of the load we will produce now, not of the one we just produced.
This is rather horrible :(


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D106447



More information about the llvm-commits mailing list