[LLVMdev] Can simplifycfg kill llvm.lifetime intrinsics?
Nick Lewycky
nicholas at mxc.ca
Fri Dec 28 10:29:06 PST 2012
On 12/28/2012 10:10 AM, Krzysztof Parzyszek wrote:
> 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.
The optimizer removes the store of undef. No other optimizations take place.
More information about the llvm-dev
mailing list