Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Provide lprofGetHostName for all windows environments #38

Closed
wants to merge 1 commit into from
Closed

Provide lprofGetHostName for all windows environments #38

wants to merge 1 commit into from

Conversation

mati865
Copy link

@mati865 mati865 commented May 16, 2019

Prerequisite for PGO on windows-gnu target.

cc @alexcrichton @michaelwoerister

This function doesn't use anything MSVC specific but works fine
for any _WIN32 target.

Differential Revision: https://reviews.llvm.org/D58106

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@353918 91177308-0d34-0410-b5e6-96231b3b80d8
@michaelwoerister
Copy link
Member

Thanks, @mati865!

I'm not sure what our policy regarding this fork of compiler-rt is...

@mati865
Copy link
Author

mati865 commented May 16, 2019

I'm not sure either so I pinged Alex.

BTW with slight change to rust repository PGO seems to work and size of hello world example dropped from 2.4 MiB to 1.4 MiB.

@alexcrichton
Copy link
Member

It's fine to patch up our forks of LLVM projects as we typically do it all the time. I've long wanted to unify this repository and the llvm-project repository, and especially if we're going to carry special patches here I think we'll instead want to use llvm-project. Can this be sent to the llvm-project repository instead?

@mati865
Copy link
Author

mati865 commented May 16, 2019

No problem for me if you plan on switching compiler-builtins to use llvm-project soon.

@alexcrichton
Copy link
Member

The switch has happened in rust-lang/compiler-builtins#294

@mati865
Copy link
Author

mati865 commented May 16, 2019

Oh, nice.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants