[PATCH] Add Thumb2 load byte instructions in check for same address

Daniel Stewart stewartd at codeaurora.org
Tue Aug 13 13:03:31 PDT 2013


Just wanted to bump this request again to see if I can get this patch
reviewed.

 

This patch tries to allow schedules of loads to be near each other even if
one is a t2LDRBi8 load and the other is a t2LDRBi12 load. Currently, loads
must be of the exact same type to be considered near each other. It is
advantageous in cases where they loads are not of the exact same type for
them to at least be tested for nearness. In the case of ARM thumb  code,
addresses which are +1 and -1 offset from a base address could be considered
near each other, but currently are not due to the use of differing opcodes
to encode the positive and negative offsets. 

 

Daniel Stewart

--

Qualcomm Innovation Center, Inc is a member of Code Aurora Forum, hosted by
The Linux Foundation

 

From: llvm-commits-bounces at cs.uiuc.edu
[mailto:llvm-commits-bounces at cs.uiuc.edu] On Behalf Of Daniel Stewart
Sent: Friday, August 02, 2013 2:28 PM
To: llvm-commits at cs.uiuc.edu
Subject: [PATCH] Add Thumb2 load byte instructions in check for same address

 

When determining if two different loads are from the same base address, this
patch allows one load to use a t2LDRi8 address mode and another to use a
t2LDRi12 address mode. The current implementation is very conservative and
this allows the case of differing Thumb2 byte loads to be considered.
Allowing these differing modes instead of forcing the exact same opcode is
useful for situations where one opcodes loads from a base address+1 and a
second opcode loads for a base address-1.

 

Daniel Stewart

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130813/f60f7738/attachment.html>


More information about the llvm-commits mailing list