We select G_CONSTANT generic opcodes by materializing the constant in a
register. G_ANYEXT is replaced with COPY.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Time | Test | |
---|---|---|
60,040 ms | x64 debian > MLIR.Examples/standalone::test.toy |
Event Timeline
llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp | ||
---|---|---|
134 | Should be a reference. |
llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/constant64.mir | ||
---|---|---|
1 ↗ | (On Diff #552467) | Did you miss this comment? |
Comment Actions
In order to add s32 tests for rv64 we need to select for G_ANYEXT instructions (to return the s32 constant).
llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/constant64.mir | ||
---|---|---|
1 ↗ | (On Diff #552467) | Sorry, was still working on this when I submitted, I forgot to change the status of the issue. |
Declare Result inside the loop.