[PATCH] ARMLoadStoreOptimizer: Rewrite LDM/STM matching logic.
Matthias Braun
matze at braunis.de
Fri May 29 14:48:05 PDT 2015
Hi rengolin, mroth, jmolloy,
This improves the logic in several ways and is a preparation for
followup patches:
- First perform an analysis and create a list of merge candidates, then
transform. This simplifies the code in that you have don't have to
care to much anymore that you may be holding iterators to
MachineInstrs that get removed.
- Analyze/Transform basic blocks in reverse order. This allows to use
LivePhysRegs to find free registers instead of the RegisterScavenger.
The RegisterScavenger will become less precise in the future as it
relies on the deprecated kill-flags.
- Return the newly created node in MergeOps so there's no need to look
around in the schedule to find it.
- Rename some MBBI iterators to InsertBefore to make their role clear.
- General code cleanup.
REPOSITORY
rL LLVM
http://reviews.llvm.org/D10140
Files:
lib/Target/ARM/ARMLoadStoreOptimizer.cpp
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10140.26822.patch
Type: text/x-patch
Size: 50965 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150529/bf67bd9b/attachment.bin>
More information about the llvm-commits
mailing list