diff options
author | Jessica Paquette <jpaquette@apple.com> | 2021-07-28 16:03:41 -0700 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2021-07-28 17:19:14 -0700 |
commit | 5a333dc5da9fac3407b78d52ad3bc18049f8a73b (patch) | |
tree | d732d8801b8634f65802527ff3f94f49062fd820 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | 0cdf4915019a8ebc6570229cf140ad879dfaef56 (diff) | |
download | llvm-5a333dc5da9fac3407b78d52ad3bc18049f8a73b.zip llvm-5a333dc5da9fac3407b78d52ad3bc18049f8a73b.tar.gz llvm-5a333dc5da9fac3407b78d52ad3bc18049f8a73b.tar.bz2 |
[AArch64][GlobalISel] Improve legalization for odd-type G_LOAD
Swap the order of widening so that we widen to the next power-of-2 first when
legalizing G_LOAD.
Also, provide a minimum type for the power of 2 to disallow s2 + s1. Clamping
ought to disallow s2 and s1, but I think it's better to be explicit about the
expected minimum size.
We probably need a similar change for G_STORE, but it seems to be a bit more
finnicky. So, let's just handle G_LOAD for now.
Differential Revision: https://reviews.llvm.org/D107013
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions