[PATCH] D157828: [RISCV][GISel] Initial legalization support for G_LOAD and G_STORE.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 15 15:30:14 PDT 2023
craig.topper added inline comments.
================
Comment at: llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv32/legalize-load.mir:6
+--- |
+ define i8 @load_i8(ptr %x) {
+ %a = load i8, ptr %x, align 1
----------------
nitinjohnraj wrote:
> Do we need the LLVM IR to specify the alignment here? Other RISCV legalizer tests don't have the LLVM IR, so I'm wondering if we can get rid of it.
Did someone ask for the IR to be removed in other legalizer tests or is just something we started doing without discussion?
================
Comment at: llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv32/legalize-load.mir:53
+---
+name: load_i8
+alignment: 4
----------------
nitinjohnraj wrote:
> Perhaps we could use a test for i7? It tests that we can legalize loads for odd sizes.
I'm going to keep odd sizes for later. I need to figure out more about hooks like `lowerIfMemSizeNotByteSizePow2` and `unsupportedIfMemSizeNotPow2`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157828/new/
https://reviews.llvm.org/D157828
More information about the llvm-commits
mailing list