Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Again, I was expecting more tests... I think if you're going to dedicate a couple of paragraphs describing the logic around SP, we need to test it too!
llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp | ||
---|---|---|
5689 | SmallVector instead? | |
llvm/test/CodeGen/ARM/machine-outliner-nosave-and-regs.mir | ||
3 | I think it would be good practise to add a thumb-1 target to any of the tests added. |
For the testcases here, can you just use llvm/utils/update_mir_test_checks.py? That would make it easy to check save/restore sequences for outlined calls.
I think that it would be good to split this up into two separate patches: one for the NoLRSave case, and one for the Register case.
Thanks for the review Jessica and Sam,
I'll split it into two separate patches and thanks for the pointer to llvm/utils/update_mir_test_checks.py !
llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp | ||
---|---|---|
5689 | well, this is passed as a parameter to outliner::OutlinedFunction which takes an std::Vector, maybe a SmallVector can used there instead but I think it should be done in another patch | |
llvm/test/CodeGen/ARM/machine-outliner-nosave-and-regs.mir | ||
3 | Agreed |
SmallVector instead?