PATCH. Fix ARM Leapcrel definition to make it loop hoistable

Yin Ma yinma at codeaurora.org
Mon Oct 14 11:20:33 PDT 2013


Hi Tim,

It is difficult for me to create a test now.  Sorry about this.
With this patch, I have run all validations and tests, all passed.

the ADR and LEApcrel are paired instructions to  handle pc-relative address.

ADR has not side effect. If we look at the Definition of  LEApcrel. It has
much 
similar definition like ADR. It should be marked as no side effect. 

Thanks,

Yin 


-----Original Message-----
From: Tim Northover [mailto:t.p.northover at gmail.com] 
Sent: Monday, October 07, 2013 12:15 PM
To: Yin Ma
Cc: llvm-commits
Subject: Re: PATCH. Fix ARM Leapcrel definition to make it loop hoistable

Hi Yin,

> This patch enables LEAPCREL to be moved out of a loop because it is 
> currently marked as hasSideEffects in .td file. Actually, it is not. 
> By reading the comment above this instruction. It should not be marked 
> hasSideEffects from the very beginning.

Could you explain why Jakob's comment in r162603's commit message (when he
added the "hasSideEffects = 1" line) is no longer valid?

Also, as usual, tests would be good.

Cheers.

Tim.




More information about the llvm-commits mailing list