[PATCH] D17028: [ThinLTO] Use MD5 hash in function index.

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 10 10:00:19 PST 2016


On Wed, Feb 10, 2016 at 9:55 AM, Xinliang David Li <davidxl at google.com>
wrote:

> I meant the op1 part can be simplified -- but not necessariliy need to.
>

Ok, I think I prefer it the way it is now, checking against the expected
MD5 hash values. Will leave it as-is.


>
> David
>
> On Wed, Feb 10, 2016 at 9:53 AM, Teresa Johnson <tejohnson at google.com>
> wrote:
> > tejohnson added inline comments.
> >
> > ================
> > Comment at: test/tools/gold/X86/thinlto.ll:27-31
> > @@ -26,5 +26,7 @@
> >  ; COMBINED-NEXT: <VALUE_SYMTAB
> > -; COMBINED-NEXT: <COMBINED_FNENTRY {{.*}} record string = '{{f|g}}'
> > -; COMBINED-NEXT: <COMBINED_FNENTRY {{.*}} record string = '{{f|g}}'
> > +; Check that the format is: op0=offset, op1=funcguid, where funcguid is
> > +; the lower 64 bits of the function name MD5.
> > +; COMBINED-NEXT: <COMBINED_FNENTRY abbrevid={{[0-9]+}} op0={{[0-9]+}}
> op1={{-3706093650706652785|-5300342847281564238}}
> > +; COMBINED-NEXT: <COMBINED_FNENTRY abbrevid={{[0-9]+}} op0={{[0-9]+}}
> op1={{-3706093650706652785|-5300342847281564238}}
> >  ; COMBINED-NEXT: </VALUE_SYMTAB
> >
> > ----------------
> > I think that's what I have here already? I could shorten this a bit by
> replacing the intermediate parts with {{.*}}. E.g.:
> >
> > ; COMBINED-NEXT: <COMBINED_FNENTRY {{.*}}
> {{-3706093650706652785|-5300342847281564238}}
> >
> > Is that preferable?
> >
> >
> > http://reviews.llvm.org/D17028
> >
> >
> >
>



-- 
Teresa Johnson |  Software Engineer |  tejohnson at google.com |  408-460-2413
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160210/cdeae2fd/attachment.html>


More information about the llvm-commits mailing list