[LLVMdev] Can simplifycfg kill llvm.lifetime intrinsics?

Krzysztof Parzyszek kparzysz at codeaurora.org
Wed Dec 26 12:34:59 PST 2012

On 12/26/2012 2:28 PM, Krzysztof Parzyszek wrote:
> The llvm.lifetime.end(%a) in your example is invalid, according to the
> lang ref:

Correction: it's not invalid, but if the value that %a points to is 
indeed never used after the store (as the lifetime.end intrinsic would 
indicate), then the store was dead from the beginning.  Deleting the 
lifetime.start(%a) wouldn't have any ill effect in that case.

I'm not sure if that's what the author intended though.


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

More information about the llvm-dev mailing list