[llvm] [LoadStoreVectorizer] Propagate alignment through contiguous chain (PR #145733)
Drew Kersnar via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 22 10:50:49 PDT 2025
================
@@ -21,6 +21,43 @@
using namespace llvm;
+static bool tryToPropagateAlign(Function &F, const DataLayout &DL) {
+ bool Changed = false;
+
+ for (BasicBlock &BB : F) {
----------------
dakersnar wrote:
Good idea. I reworked it to use the tryImproveAlignment framework. Let me know if this is what you had in mind, or if you wanted me to integrate it into the existing call to tryImproveAlignment (the one that calls computeKnownBits)
https://github.com/llvm/llvm-project/pull/145733
More information about the llvm-commits
mailing list