[LLVMdev] Can simplifycfg kill llvm.lifetime intrinsics?

Krzysztof Parzyszek kparzysz at codeaurora.org
Fri Dec 28 10:10:04 PST 2012


On 12/28/2012 12:00 PM, Nick Lewycky wrote:
>
> As an alternative model, I propose replacing lifetime.start/end with a
> single intrinsic that does the equivalent of 'store undef, %ptr' and
> nothing more.

Couldn't we just insert the store?  Unless it's a volatile (or otherwise 
ordered) location, the optimizer would be free to remove it.

-Krzysztof


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



More information about the llvm-dev mailing list