[LLVMdev] Optimizer to remove duplicate loads?

Caldarale, Charles R Chuck.Caldarale at unisys.com
Sun Feb 24 07:19:17 PST 2013


> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of edA-qa mort-ora-y
> Subject: Re: [LLVMdev] Optimizer to remove duplicate loads?

> Is there some attribute I can mark the functions with however that would 
> allow the optimizers to understand it's safe not to reload?

Try calling setOnlyReadsMemory() and setDoesNotThrow() on the Function object when you create it.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.





More information about the llvm-dev mailing list