[PATCH] D30124: [ARM] Fix insert point for store rescheduling.

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 21 13:05:25 PST 2017


MatzeB added a comment.

I should probably write a tutorial/blogpost about that; a good .mir test should be minimal and not just an llc -stop-after= dump, here's how to get there:

- IR can be removed in most cases. Backreferences to IR happen with blocknames like `bb.N.xxx` where xxx is the IR block name can be replaced with `bb.N`. Memory operands keep reference to IR like `(store 4 into %irvalue)` they can usually be changed to `(store 4)` because the test doesn't need detail memory disambiguation.
- Most yaml statements can be removed (the whole frameInfo: block here, alignment, returnsTwice, legalized, regBankSelected, selected probably)
- There is a new feature to define the register of a vreg when writing to it: `body: %0 : gpr = COPY ...` instead of `registers: - { id: 0, class: gpr } body: %0 = COPY ...`


Repository:
  rL LLVM

https://reviews.llvm.org/D30124





More information about the llvm-commits mailing list