Cleanup and commonize code used for spilling to the stack.
Details
Details
- Reviewers
stefanp nemanjai kamaub - Group Reviewers
Restricted Project - Commits
- rG2e6e27583ce1: [PowerPC][NFC] Cleanup load/store spilling code
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I think the index for the StoreSpillOpcodesArray and LoadSpillOpcodesArray arrays are incorrect.
Besides that the patch LGTM and I want to approve it.
| llvm/lib/Target/PowerPC/PPCInstrInfo.h | ||
|---|---|---|
| 138 | The indentation in these code blocks needs to be unified. | |
| 177 | enums start at 0 so i think this should be SOK_LastOpcodeSpill +1 right? | |
| 179 | Same as above comment. | |
Comment Actions
LGTM, one pre-commit nit with the indentation.
| llvm/lib/Target/PowerPC/PPCInstrInfo.h | ||
|---|---|---|
| 177 | I realise now that this is on purpose as the #define opcodes only have 15 entries, my apologies. | |
| llvm/lib/Target/PowerPC/PPCInstrInfo.h | ||
|---|---|---|
| 138 | this was actually done by clang-format. | |
The indentation in these code blocks needs to be unified.