This is an archive of the discontinued LLVM Phabricator instance.

Bump the default target CPU for i386-freebsd to i686
ClosedPublic

Authored by dim on Jul 12 2020, 11:36 AM.

Details

Summary

Similar to what we have done downstream, some time ago:
https://svnweb.freebsd.org/changeset/base/353936

This followed some discussions on the freebsd-arch mailing lists, and
most people agreed that it was a better default, and also it worked
around several issues where clang generated libcalls to 64 bit atomic
primitives, instead of using cmpxchg8b.

Diff Detail

Event Timeline

dim created this revision.Jul 12 2020, 11:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 12 2020, 11:36 AM
emaste accepted this revision.Jul 12 2020, 12:50 PM

Fine with me

This revision is now accepted and ready to land.Jul 12 2020, 12:50 PM
This revision was automatically updated to reflect the committed changes.

@dim

Hi, your git commit contains extra Phabricator tags. You can drop Reviewers: Subscribers: Tags: and the text Summary: from the git commit with the following script:

arcfilter () {
        arc amend
        git log -1 --pretty=%B | awk '/Reviewers:|Subscribers:/{p=1} /Reviewed By:|Differential Revision:/{p=0} !p && !/^Summary:$/ {sub(/^Summary: /,"");print}' | git commit --amend --date=now -F -
}

Reviewed By: is considered important by some people. Please keep the tag. (--date=now is my personal preference (author dates are usually not useful. Using committer dates can make log almost monotonic in time))

llvm/utils/git/pre-push.py can validate the message does not include unneeded tags.

dim added a comment.Jul 19 2020, 2:46 AM

@dim

Hi, your git commit contains extra Phabricator tags. You can drop Reviewers: Subscribers: Tags: and the text Summary: from the git commit with the following script:

arcfilter () {
        arc amend
        git log -1 --pretty=%B | awk '/Reviewers:|Subscribers:/{p=1} /Reviewed By:|Differential Revision:/{p=0} !p && !/^Summary:$/ {sub(/^Summary: /,"");print}' | git commit --amend --date=now -F -
}

Reviewed By: is considered important by some people. Please keep the tag. (--date=now is my personal preference (author dates are usually not useful. Using committer dates can make log almost monotonic in time))

llvm/utils/git/pre-push.py can validate the message does not include unneeded tags.

Hm, I think I just used arc land to land this revision. Does arc not do all that stuff? In any case, I can't change the commit message after it's been pushed.

llvm/utils/git/pre-push.py is recommended for your future commits. I guess arc land is a bad choice because llvm/llvm-project uses the github community version which can't set a pre-receive hook.