- User Since
- May 3 2018, 11:15 AM (99 w, 3 d)
Nov 7 2019
Fix small typo in comments.
Nov 6 2019
Remove quotes from -NOT tests.
Fix NODEBUGINFO-NOT test.
Remove period from help text. Fix tests.
Nov 5 2019
Rename flag to -fdebug-default-version; add help text, mentioning DWARF. Update tests to use -### and add assembler tests.
Yes, I will change the flag name back to debug-default-version, and add help text mentioning dwarf. I'm in the process of trying to re-do the test cases as required (I'm a bit new to this so it's taking me a bit to figure this out).
Make second call to ParseDwarfDefaultVersion unconditional (to match the first and avoid errors with -Werror).
For the record, I double-checked and if we use the flag and don't check for it (i.e. if we move the parsing inside the EmitDwarf is True block) then -Werror does indeed complain about an unused command line argument.
dblaikie: The code, as written, parses the dwarf default version flag, whether or not DWARFVersion is 0, i.e. whether or not a -gdwarf-N flag was passed. It only USES the value if there's no overriding value.
re-try upload again.
Ok, I think the upload was correct this time.
Hmmm...I'm having upload issues.
Try uploading correct diff file?
Made requested changes:
- renamed option to be dwarf-specific
- fixed spelling & blank line issues
- only set version if emit-dwarf is true
- move test to Driver directory
Nov 4 2019
Made requested formatting changes.
Jun 5 2019
Ping? Is anybody looking at or working on this? The bug this fixes is one of the issues currently blocking Chrome OS from being able to adopt Dwarf v5, so we are hoping for a fix?
May 13 2019
Committed in r360380.
May 9 2019
Apr 1 2019
Test case has been committed, as of revision 357409.
Mar 1 2019
Ran clang-format on Statistics.cpp
Feb 7 2019
It appears to me that on line 131 we are already adding/counting the ConstantMembers in FnStats.VarsInFunction, so adding "+ Constants" would be counting them twice. Alternatively we can change the code on line 131 to not include ConstantMembers...
I was mistaken before: we were never counting the template parameters. What was happening was that we were counting the variables in both inlined instances, and we were also counting the variables for a concrete, out-of-line instance of the inlined function, even though in this particular case there was no concrete out-of-line instance. I have updated the patch now to only count vars in DW_TAG_subprogram DIEs if the subprogram DIE has PC addresses. I believe this is the correct fix for this issue.
This increases the version number, as requested.
Now we correctly count only real constant members as "constant members" and we count global variables with locations as part of the "vars with locs".
aprantl@, you were right, my original change was not correctly updating the variable counts to include variables occuring in inlined instances of functions. I have update the patch to fix this issue. There were two additional changes needed: one to make sure we were counting variables for functions that had no inlined instances at all; and one to avoid double-counting member constants.
Feb 6 2019
Sep 21 2018
Use Conf.CodeModel in LTO, if it exists.
Add comment explaining why mixing two code models is an error. Add missing Inputs/codemodel-3.ll file.
Move include statement from CodeGenModule.h to CodeGenModule.cpp
Remove incorrect "default" case statement.
Add test for "tiny" code model.
Sep 20 2018
Jul 20 2018
Simplify test case, as requested by Peter.
I just realized that my patch did not contain the actual move of RuntimeLibcalls.def from CodeGen to IR. This update includes that move.
Made requested fixes.
I've made Peter's suggested changes.
Jul 19 2018
pcc's original suggested fix did not work, because the real issue was the function definitions being initially internalized by LTO and later DCE'd. Peter's suggestion did not prevent them from being internalized. I consulted with him offline and we came up with this alternative solution. It fixes the issue for the new LTO implemention. The old LTO implementation still internalizes the function definitions, but they do not get Dead Code Eliminated. I have also fixed the test case, and have generalized the code to check for all builtin functions (as requested).
Jul 17 2018
pcc@ Originally I tried to make the change in ModuleSummaryAnalysis.cpp, but it turns out that this is not allowed in LLVM: I am not supposed to make changes to the IR in the Analysis layer of LLVM. I need to find some place in the Transform layer to make the change. Hence my first guess as to a location: GlobalOpt.cpp. I would be happy to make the change in some other location instead, but it must be someplace in the Transform layer.
May 7 2018
Make cfi_blacklist.txt be an empty file.
Make -resource-dir point to correct directory, in test case; move cfi_blacklist.txt file to 'share' subdirectory in test resource dir.
I'm not sure if I have commit access or not; Peter was working with me on trying to commit the change.
Fix test failure that my previous changes caused.
May 4 2018
vsk: Are you asking me to put together a cfi blacklist to ship in the resource directory in the default install as part of this code review? Or is that something you want to see in a different code reivew?
Added comment to change in source code.
Updated the error to only occur for CFI blacklist, and added test case.
May 3 2018
Ok, I'll work on making this CFI-specific and adding a test case.
Tried to upload the diff from the correct location.