[PATCH] D64675: WIP: Disable optimization in emitStoresForConstant
JF Bastien via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 12 16:28:56 PDT 2019
jfb added a comment.
That's interesting. If `MemCpyOpt` has picked up the slack and clang can be simpler here, then let's remove clang's "intelligence". I do want to make sure that it handles all the cases this handles though, and does indeed generate great code on both x86-64 and ARM64. I think we need to create a list of test cases and make sure `MemCpyOpt` covers them. Further, I'd also like to check that performance is also still the same (not just code size).
I would still keep scalar stores (as you did above), and maybe update `canDoSingleStore` to also handle stores to a struct that only has a single element.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64675/new/
https://reviews.llvm.org/D64675
More information about the cfe-commits
mailing list