[PATCH] D85199: GlobalISel: Add generic instructions for memory intrinsics
Konstantin Schwarz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 4 06:52:12 PDT 2020
kschwarz added a comment.
> The promotion gets inserted in the libcall lowering [...]
What promotion do you mean? In its current from, createMemLibcall doesn't do any type promotion?
The problem we have is that some LLVM-IR passes introduce calls to `llvm.memcpy.p0i8.p0i8.i64`, even though our native pointer size is 32-bits. Since it turned out that fixing this in LLVM is quite invasive, we currently work around this problem by truncating the size argument to 32-bits before calling createMemLibcall.
Having the legalizer action do this for us, we could remove the custom handling from our backend.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85199/new/
https://reviews.llvm.org/D85199
More information about the llvm-commits
mailing list