[llvm-bugs] [Bug 33670] New: -foptimization-record-file= should imply -fsave-optimization-record
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Jul 1 14:09:27 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33670
Bug ID: 33670
Summary: -foptimization-record-file= should imply
-fsave-optimization-record
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Driver
Assignee: unassignedclangbugs at nondot.org
Reporter: modocache at gmail.com
CC: llvm-bugs at lists.llvm.org
The Clang option -foptimization-record-file= controls which file an
optimization record is output to. Optimization records are output if you use
the Clang option -fsave-optimization-record. If you specify the first option
without the second, you get a warning that the command line argument was
unused:
$ clang -fprofile-sample-use=foo.profdat -foptimization-record-file=foo.yaml
foo.c
clang-5.0: warning: argument unused during compilation:
'-foptimization-record-file=foo.yaml' [-Wunused-command-line-argument]
Should -foptimization-record-file= imply -fsave-optimization-record? It seems
like a user that specifies a custom path to an optimization record file
certainly wants Clang to output the file in the first place.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170701/a94b7841/attachment.html>
More information about the llvm-bugs
mailing list