[patch] Don't make assumptions about the name of private global variables

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Nov 11 16:48:51 PST 2014


OK, I think I have it. The test in the attached patch fails if any of
the conditions the patch adds are dropped.


On 11 November 2014 19:00, Michael Gottesman <mgottesman at apple.com> wrote:
> Ok. Thanks.
>
> Michael
>
>> On Nov 11, 2014, at 3:51 PM, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:
>>
>> On 11 November 2014 15:21, Michael Gottesman <mgottesman at apple.com> wrote:
>>> The simplest and least fragile way to test this is to make a small pass like
>>> the AAEvaluator that just runs ProvenanceAnalysis::related on all values in
>>> the function and just prints out a bool value. Then you could just use
>>> FileCheck to check that the query was successful.
>>>
>>> The other way is to try and create a specific sequence of instructions that
>>> hopefully will show by how the ARC optimizer moves a release that the query
>>> is correct.
>>
>> The attached patch includes the pass, but I am still not sure exactly
>> how to test it :-)
>>
>> Cheers,
>> Rafael
>> <t.patch>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: text/x-patch
Size: 7855 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141111/eba8f368/attachment.bin>


More information about the llvm-commits mailing list