[PATCH] D13107: Support for function summary index bitcode sections and files. Includes bitcode reader/writer support for these sections, and support for creation of combined index files.

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 3 15:56:47 PDT 2015



Sent from my iPhone

> On Oct 3, 2015, at 3:28 PM, Teresa Johnson <tejohnson at google.com> wrote:
> 
>> On Sat, Oct 3, 2015 at 11:58 AM, Mehdi AMINI <mehdi.amini at apple.com> wrote:
>> joker.eph added inline comments.
>> 
>> ================
>> Comment at: lib/Bitcode/Reader/BitcodeReader.cpp:5659
>> @@ +5658,3 @@
>> +      llvm::make_unique<FunctionIndexBitcodeReader>(Buf.get(), Context,
>> +                                                    DiagnosticHandler);
>> +
>> ----------------
>> Why not having R as a stack local variable? Initially before the `unique_ptr` I thought you were intended to pass it outside but it seems to be a pure local variable.
> 
> Yeah, that makes more sense. Posting new patch with that change...
> 

LGTM. You can commit.
If anything else come up, we can address it post-commit I think.

--
Mehdi


>> 
>> ================
>> Comment at: test/Bitcode/thinlto-function-summary.ll:18
>> @@ +17,3 @@
>> +; CHECK: define i32 @foo()
>> +
>> +; Function Attrs: nounwind uwtable
>> ----------------
>> I didn't see the second `RUN:` line, forget this.
>> 
>> 
>> http://reviews.llvm.org/D13107
> 
> 
> 
> -- 
> Teresa Johnson | Software Engineer | tejohnson at google.com | 408-460-2413


More information about the llvm-commits mailing list