[PATCH] D88788: [SROA] rewritePartition()/findCommonType(): if uses have conflicting type, try getTypePartition() before falling back to largest integral use type (PR47592)
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 4 18:16:15 PDT 2020
efriedma added a comment.
I guess if we're relying on the allocated type of the alloca anyway, preferring it over an integer type isn't terrible.
Really, though, we should avoid relying on the allocated type where possible. Here, we could check if any of the load/store operations use a pointer type, and choose a pointer type in that case.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88788/new/
https://reviews.llvm.org/D88788
More information about the llvm-commits
mailing list