Closed Bug 603574 Opened 15 years ago Closed 14 years ago

[Windows VC++] --disable-profile-guided-optimization is ignored

Categories

(Firefox Build System :: General, defect)

x86
Windows Server 2003
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla6

People

(Reporter: sgautherie, Assigned: sgautherie)

References

()

Details

Attachments

(1 file, 5 obsolete files)

Bug 603485 comment 3: { Nick Thomas [:nthomas] 2010-10-11 19:43:09 PDT The existence of '-LTCG:PGINSTRUMENT' in calls to link for the logs in comment #2 implies --disable-profile-guided-optimization isn't working. }
Why do we even have this flag? Can't the difference in make targets handle this?
Assignee: nobody → sgautherie.bz
Status: NEW → ASSIGNED
Flags: in-testsuite-
Summary: --disable-profile-guided-optimization doesn't seem to work → [Windows VC++] --disable-profile-guided-optimization is ignored
That puzzled me for a while! Until, by chance, I noticed the cause :->
Attachment #482501 - Flags: review?(ted.mielczarek)
(In reply to comment #1) > Why do we even have this flag? Can't the difference in make targets handle > this? I initially wrote it because we were planning on PGOing Mac builds, and I didn't want to waste the CPU cycles on the PPC half. I don't know that we'll ever get around to that, and it's kind of confusing, so maybe we should just remove it instead. Serge, would you like to instead just write a removal patch?
(In reply to comment #3) > Serge, would you like to instead just write a removal patch? Why not. But what would be the plan for bug 603485 (then)?
So, reading the other bug, I think a PGO configure option is useful as long as try forces PGO. I think we should take the fix.
I dunno. It's kind of confusing, since people can be misled into thinking that --enable-profile-guided-optimization does something, when it doesn't. I would rather have the try chooser support an option to get a non-PGO build. But anyway, if we're going to have the option it should at least do what it claims.
So make it error when --enable is selected.
Comment on attachment 482501 [details] [diff] [review] (Av1) Move --disable-profile-guided-optimization outside of SKIP_COMPILER_CHECKS, Fix some unrelated nits Succeeded (to work around bug 603485) as http://hg.mozilla.org/try/pushloghtml?changeset=e629f100d679 http://ftp.mozilla.org/pub/mozilla.org/firefox/tryserver-builds/sgautherie.bz@free.fr-e629f100d679/tryserver-win32/ and runs fine locally (with XPCOM_MEM_LEAK_LOG=1). ***** (In reply to comment #6) > --enable-profile-guided-optimization does something As for other similar options I guess, --enable-* could (only) be used to override a confvars.sh setting or a .mozconfig default... > try chooser support an option to get a non-PGO build That should be discussed in bug 588099, I think. (In reply to comment #7) > So make it error when --enable is selected. (A "useless" param certainly doesn't look like an error to me.) Maybe just a warning in case the option isn't overriding anything? (Though I would just not bother, fttb.)
Blocks: 588099
Comment on attachment 482501 [details] [diff] [review] (Av1) Move --disable-profile-guided-optimization outside of SKIP_COMPILER_CHECKS, Fix some unrelated nits In this particular case, people could easily mistake --enable-profile-guided-optimization as "this is how you do a PGO build" and be confused about the result. Warnings are easy to miss in the output of configure, an error is very clear. Can you add that to your patch? r=me with that change.
Attachment #482501 - Flags: review?(ted.mielczarek) → review+
Av1, with comment 9 suggestion(s), plus keeping /js/src/ in sync'.
Attachment #482501 - Attachment is obsolete: true
Attachment #483377 - Flags: review?(ted.mielczarek)
Attachment #483377 - Flags: approval2.0?
Comment on attachment 483377 [details] [diff] [review] (Av1a) Move --disable-profile-guided-optimization outside of SKIP_COMPILER_CHECKS, Error out on --enable-*, Fix some unrelated nits How about in the error message, you link to https://developer.mozilla.org/En/Building_with_Profile-Guided_Optimization instead? r=me
Attachment #483377 - Flags: review?(ted.mielczarek) → review+
Attachment #483377 - Flags: approval2.0? → approval2.0-
This can land in the build-system branch.
Av1a, with comment 11 suggestion(s), unbitrotted, and with a redundant comment removal.
Attachment #483377 - Attachment is obsolete: true
Attachment #526590 - Flags: review?(ted.mielczarek)
Is that still going to be needed once bug 645166 is done ? (which catlee agreed to do at the same time as the gcc 4.5 switch for linux)
I added this originally while working on PGO for OS X, so I could disable PGO on the PPC half of our build. We should probably just remove this, since we're not doing OS X PGO anytime soon, and it's more confusing than useful.
Comment on attachment 526590 [details] [diff] [review] (Av1b) Move --disable-profile-guided-optimization outside of SKIP_COMPILER_CHECKS, Error out on --enable-*, Fix some unrelated nits We should remove --disable-profile-guided-optimization. It wasn't a great idea when I added it, and glandium's work is better suited to the task.
Attachment #526590 - Flags: review?(ted.mielczarek) → review-
Attachment #526590 - Attachment is obsolete: true
Attachment #530948 - Flags: review?(ted.mielczarek)
Comment on attachment 530948 [details] [diff] [review] (Av2) Remove --disable-profile-guided-optimization support, Fix some unrelated nits Review of attachment 530948 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for reworking the patch! r=me
Attachment #530948 - Flags: review?(ted.mielczarek) → review+
Keywords: checkin-needed
Serge, please provide a commit message following the "Bug XXX - Message. r=foo" pattern.
Keywords: checkin-needed
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla6
Attachment #532434 - Attachment description: (Av2) Remove --disable-profile-guided-optimization support, Fix some unrelated nits → (Av2) Remove --disable-profile-guided-optimization support, Fix some unrelated nits [Checked in: Comment 21]
"comm-5.0" stub is not expected to be hit, but just in case.
Attachment #532646 - Flags: review?(mbanner)
Comment on attachment 532646 [details] [diff] [review] (Bv1-CC) Remove --disable-profile-guided-optimization support, Fix some unrelated nits [Moved to bug 707517] I think, as I've said before, I'd prefer these on new bugs specifically for comm-central as it is far easier to track what has gone into a release. I also don't know where comm-5.0 came from as we never created that. Anyway, I'll let Callek review this.
Attachment #532646 - Flags: review?(mbanner) → review?(bugspam.Callek)
Comment on attachment 532646 [details] [diff] [review] (Bv1-CC) Remove --disable-profile-guided-optimization support, Fix some unrelated nits [Moved to bug 707517] took me a while to get to this, and looks like it has a 5.0 based ifdef, lets re-do this patch so it doesn't.
Attachment #532646 - Flags: review?(bugspam.Callek) → review-
Blocks: 707517
Attachment #532646 - Attachment description: (Bv1-CC) Remove --disable-profile-guided-optimization support, Fix some unrelated nits → (Bv1-CC) Remove --disable-profile-guided-optimization support, Fix some unrelated nits [Moved to bug 707517]
Attachment #532646 - Attachment is obsolete: true
(In reply to Mark Banner (:standard8) from comment #23) > I'd prefer these on new bugs specifically for > comm-central as it is far easier to track what has gone into a release. I > also don't know where comm-5.0 came from as we never created that. I filed bug 707517.
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: