[all-commits] [llvm/llvm-project] 5a333d: [AArch64][GlobalISel] Improve legalization for odd...
Jessica Paquette via All-commits
all-commits at lists.llvm.org
Wed Jul 28 17:20:37 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5a333dc5da9fac3407b78d52ad3bc18049f8a73b
https://github.com/llvm/llvm-project/commit/5a333dc5da9fac3407b78d52ad3bc18049f8a73b
Author: Jessica Paquette <jpaquette at apple.com>
Date: 2021-07-28 (Wed, 28 Jul 2021)
Changed paths:
M llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
M llvm/test/CodeGen/AArch64/GlobalISel/legalize-load-store.mir
Log Message:
-----------
[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
More information about the All-commits
mailing list