Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| llvm/lib/Target/RISCV/RISCVMergeBaseOffset.cpp | ||
|---|---|---|
| 275 | Do we need to check that the immediate operand of the load/store is 0 before we remove it? | |
Comment Actions
I think calling setOffset on the pcrel_lo offset is incorrect. That always points to the auipc it shouldn't have an offset.
| llvm/test/CodeGen/RISCV/fold-addi-loadstore.ll | ||
|---|---|---|
| 365 ↗ | (On Diff #443089) | This is incorrect. There shouldn't be a +4 on the pcrel_lo relocation. |
| 378 ↗ | (On Diff #443089) | Here too |
| 417 ↗ | (On Diff #443089) | And here |
| llvm/lib/Target/RISCV/RISCVMergeBaseOffset.cpp | ||
|---|---|---|
| 124 | This should also be skipped if Hi is AUIPC | |
This should also be skipped if Hi is AUIPC