This is an archive of the discontinued LLVM Phabricator instance.

[flang][driver] Fix opt-level option parsing
ClosedPublic

Authored by awarzynski on Jul 19 2022, 10:57 AM.

Details

Summary

This update makes sure that flang-new -O2 -O0 will run at -O0 rather
than -O2.

This bug was identified and originally fixed by Vyacheslav Zakharin in
https://reviews.llvm.org/D130035. I've extracted the fix into a separate
patch.

co-authored by: Vyacheslav Zakharin <vyacheslav.p.zakharin@intel.com>

Diff Detail

Event Timeline

awarzynski created this revision.Jul 19 2022, 10:57 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
awarzynski requested review of this revision.Jul 19 2022, 10:57 AM

Thanks for taking care of it! LGTM except for the typo.

flang/lib/Frontend/CompilerInvocation.cpp
93

typo: "from from"

vzakhari accepted this revision.Jul 19 2022, 4:03 PM
This revision is now accepted and ready to land.Jul 19 2022, 4:03 PM
awarzynski added inline comments.Jul 20 2022, 4:11 AM
flang/lib/Frontend/CompilerInvocation.cpp
93

Cheers, will fix before merging

This revision was automatically updated to reflect the committed changes.

Co-authored-by: must be on the last line of the commit message otherwise authorship is not acknoledge correctly by github. So for github, on this commit https://github.com/llvm/llvm-project/commit/bbdf5c37e38e172228963fed8ebc3c37d940ede1 you are the only author.

Co-authored-by: must be on the last line of the commit message otherwise authorship is not acknoledge correctly by github. So for github, on this commit https://github.com/llvm/llvm-project/commit/bbdf5c37e38e172228963fed8ebc3c37d940ede1 you are the only author.

Sorry about that! TBH, I pay little attention to GitHub statistics, but I appreciate that others might find it helpful. Why not formalize this by updating https://llvm.org/docs/Contributing.html?

Hopefully one day there will be a Git hook to automate this. Or perhaps there is one that I'm not aware of?

@awarzynski I wonder where I still have my old e-mail vyacheslav.p.zakharin@intel.com referenced - can you please point me to it?

@awarzynski I wonder where I still have my old e-mail vyacheslav.p.zakharin@intel.com referenced - can you please point me to it?

git log inside the LLVM repo. I searched for "Vyacheslav" (which I took from Phabricator, but that has changed since, hasn't it?).

@awarzynski I wonder where I still have my old e-mail vyacheslav.p.zakharin@intel.com referenced - can you please point me to it?

git log inside the LLVM repo. I searched for "Vyacheslav" (which I took from Phabricator, but that has changed since, hasn't it?).

Ah, okay :) yes, I changed first name in phabricator, so using git log looking for Slava Zakharin should now give you my current mail.