[PATCH] D75238: [DAGCombine] Fix alias analysis for unaligned accesses
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 27 13:04:40 PST 2020
nickdesaulniers added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:21134
+ SrcValOffset0 % *MUC0.NumBytes == 0 &&
+ SrcValOffset1 % *MUC0.NumBytes == 0) {
int64_t OffAlign0 = SrcValOffset0 % OrigAlignment0;
----------------
srhines wrote:
> nickdesaulniers wrote:
> > Probably should hoist `MUC0.NumBytes` and `MUC1.NumBytes` above the if into their own locals, like the offsets and alignments; would help make this condition and block more readable.
> >
> > Also, was mod'ing `SrcValueOffset1` by `*MUC0.NumBytes` intentional? Should it be `*MUC1.NumBytes`?
> `*MUC0.NumBytes == *MUC1.NumBytes` from earlier in this conditional.
Still...
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75238/new/
https://reviews.llvm.org/D75238
More information about the llvm-commits
mailing list