[llvm] [AArch64][GISel] Support SVE with 128-bit min-size for G_LOAD and G_STORE (PR #92130)
via llvm-commits
llvm-commits at lists.llvm.org
Tue May 21 04:42:51 PDT 2024
================
@@ -329,6 +335,20 @@ AArch64LegalizerInfo::AArch64LegalizerInfo(const AArch64Subtarget &ST)
return ValTy.isPointerVector() && ValTy.getAddressSpace() == 0;
};
+ if (ST.hasSVE()) {
+ for (const auto OpCode : {G_LOAD, G_STORE}) {
+ getActionDefinitionsBuilder(OpCode)
----------------
Him188 wrote:
```C++
LegalizeRuleSet &LegalizerInfo::getActionDefinitionsBuilder(unsigned Opcode) {
unsigned OpcodeIdx = getActionDefinitionsIdx(Opcode);
auto &Result = RulesForOpcode[OpcodeIdx];
assert(!Result.isAliasedByAnother() && "Modifying this opcode will modify aliases");
return Result;
}
```
`getActionDefinitionsBuilder` just returns a reference so I think doing it twice is not a problem.
https://github.com/llvm/llvm-project/pull/92130
More information about the llvm-commits
mailing list