[PATCH] D134168: [RISCV] Make preferred alignment of PointerArgs for MemIntrinsic
Jessica Clarke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 19 20:15:38 PDT 2022
jrtc27 added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:12986
+ return false;
+ MinSize = 8;
+ PrefAlign = Align(Subtarget.getXLen() / 8);
----------------
JojoR wrote:
> jrtc27 wrote:
> > This seems arbitrary. I'd expect at least XLEN / 8 here?
> The caller has check this condition, set PrefAlign only the original is more smaller :)
I don't understand this comment at all. This is about MinSize not PrefAlign, and CGP just uses this value as a threshold. Why 8? Why not XLEN / 8, or XLEN / 4 if the 8 was chosen to optimise for RV32. This needs justification.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134168/new/
https://reviews.llvm.org/D134168
More information about the llvm-commits
mailing list