Page MenuHomePhabricator

lanza (Nathan Lanza)
User

Projects

User does not belong to any projects.

User Details

User Since
Oct 20 2017, 4:34 PM (283 w, 2 d)

Recent Activity

Fri, Mar 17

lanza added a comment to D136774: [Outliner] Add an option to only enable outlining of patterns above a certain threshold.

cc @kyulee

Fri, Mar 17, 5:23 PM · Restricted Project, Restricted Project
lanza updated the diff for D136774: [Outliner] Add an option to only enable outlining of patterns above a certain threshold.

Add test

Fri, Mar 17, 5:13 PM · Restricted Project, Restricted Project

Wed, Mar 8

lanza committed rG556a811d686e: [clang][nfc] Update some documentation referring to old clang flags (authored by lanza).
[clang][nfc] Update some documentation referring to old clang flags
Wed, Mar 8, 8:04 PM · Restricted Project, Restricted Project

Jan 15 2023

lanza added inline comments to D125441: [mlir][Tablegen-LSP] Add support for a compilation database.
Jan 15 2023, 10:13 PM · Restricted Project, Restricted Project

Jan 12 2023

lanza accepted D141556: Disable check noreturn call in stack protector.

I work with Shoaib and this looks like a good solution for us! Thank you!

Jan 12 2023, 10:48 AM · Restricted Project, Restricted Project
lanza added a reviewer for D141556: Disable check noreturn call in stack protector: lanza.
Jan 12 2023, 10:47 AM · Restricted Project, Restricted Project

Dec 29 2022

lanza updated subscribers of D139254: Enhance stack protector.

This diff is a ~0.5% size regression under -Oz when building with -fstack-protector. Is this reasonably expected? And one that should be expected given that it's considered to be a correctness fix? cc @smeenai

Dec 29 2022, 11:46 AM · Restricted Project, Restricted Project

Oct 28 2022

lanza added a comment to D136774: [Outliner] Add an option to only enable outlining of patterns above a certain threshold.

This makes sense to me, but we should probably add a test case?

Oct 28 2022, 10:37 AM · Restricted Project, Restricted Project

Oct 26 2022

lanza added a comment to D136774: [Outliner] Add an option to only enable outlining of patterns above a certain threshold.

I've found internally that the value here has heavy variance. ~35 is best for uncompressed code on aarch64 Linux with .eh_frame. ~5 seems best for armv7 Linux with .eh_frame. If you're using compression then many outlinings are wasteful compared to compressibility and various project-specific results come out with this parameter finding optimal values up through many hundreds.

Oct 26 2022, 10:25 AM · Restricted Project, Restricted Project
lanza added reviewers for D136774: [Outliner] Add an option to only enable outlining of patterns above a certain threshold: kyulee, smeenai, zer0.
Oct 26 2022, 10:24 AM · Restricted Project, Restricted Project
lanza requested review of D136774: [Outliner] Add an option to only enable outlining of patterns above a certain threshold.
Oct 26 2022, 10:20 AM · Restricted Project, Restricted Project

Aug 12 2022

Herald added a project to D117976: [SmallVector] Optimize move assignment operator for N==0 case: Restricted Project.

@MaskRay I haven't quite figured why yet, but I'm hitting a runtime assert failure due to this diff in our internal CI builds. I'll try to reduce this, but it's failing on our internal codebase so I can't share right away. But, to summarize:

Aug 12 2022, 2:57 PM · Restricted Project, Restricted Project

Jun 24 2022

lanza added a comment to D128382: [LLD] Two tweaks to symbol ordering scheme.

One interesting note Shoaib and I just discovered is that ~16.5% of the libraries in one of our major apps have .text sections starting on the first page of the dso. Placing hot sections at the front of the .text section would give us a slice of a "free page" that, with the current algorithm, would just be cold code that's less likely to be used. I imagine this isn't a substantial difference but it's probably slightly in favor of placing hot code first here.

Jun 24 2022, 4:53 PM · Restricted Project, Restricted Project

Jun 8 2022

lanza committed rGdd2f2909188b: Add llvm's Support lib to the psuedoCXX library (authored by lanza).
Add llvm's Support lib to the psuedoCXX library
Jun 8 2022, 2:12 PM · Restricted Project, Restricted Project
lanza closed D127269: Add llvm's Support lib to the psuedoCXX library.
Jun 8 2022, 2:12 PM · Restricted Project, Restricted Project

Jun 7 2022

lanza added a reviewer for D127269: Add llvm's Support lib to the psuedoCXX library: smeenai.
Jun 7 2022, 8:13 PM · Restricted Project, Restricted Project
lanza abandoned D114491: WIP -- add CLI to lldb-vscode.

😢

Jun 7 2022, 7:58 PM · Restricted Project, Restricted Project
lanza committed rGf46ce0373430: [MLIR] Add an install target for mlir-libraries (authored by lanza).
[MLIR] Add an install target for mlir-libraries
Jun 7 2022, 7:57 PM · Restricted Project, Restricted Project
lanza closed D126837: [MLIR] Add an install target for mlir-libraries.
Jun 7 2022, 7:57 PM · Restricted Project, Restricted Project
lanza updated the diff for D126837: [MLIR] Add an install target for mlir-libraries.

Fix typo

Jun 7 2022, 7:55 PM · Restricted Project, Restricted Project
lanza added inline comments to D126837: [MLIR] Add an install target for mlir-libraries.
Jun 7 2022, 7:52 PM · Restricted Project, Restricted Project
lanza committed rG9b3c5cba9f71: Update the ProgrammersManual explanation for ilist and iplist (authored by lanza).
Update the ProgrammersManual explanation for ilist and iplist
Jun 7 2022, 7:52 PM · Restricted Project, Restricted Project
lanza closed D95210: Update the ProgrammersManual explanation for ilist and iplist.
Jun 7 2022, 7:51 PM · Restricted Project, Restricted Project
lanza updated the diff for D95210: Update the ProgrammersManual explanation for ilist and iplist.

rebase

Jun 7 2022, 7:50 PM · Restricted Project, Restricted Project
lanza requested review of D126837: [MLIR] Add an install target for mlir-libraries.
Jun 7 2022, 7:47 PM · Restricted Project, Restricted Project
lanza added a reviewer for D127269: Add llvm's Support lib to the psuedoCXX library: hokein.
Jun 7 2022, 7:43 PM · Restricted Project, Restricted Project
lanza requested review of D127269: Add llvm's Support lib to the psuedoCXX library.
Jun 7 2022, 7:42 PM · Restricted Project, Restricted Project

Jun 1 2022

lanza added a reviewer for D126837: [MLIR] Add an install target for mlir-libraries: smeenai.
Jun 1 2022, 3:56 PM · Restricted Project, Restricted Project
lanza requested review of D126837: [MLIR] Add an install target for mlir-libraries.
Jun 1 2022, 3:55 PM · Restricted Project, Restricted Project
lanza abandoned D126828: [MLIR] Add an install target for mlir-libraries.
Jun 1 2022, 3:16 PM · Restricted Project, Restricted Project
lanza added a comment to D126828: [MLIR] Add an install target for mlir-libraries.

Ugh, something went tragically wrong with Phabricator's diff display here for some reason. https://reviews.llvm.org/file/data/in2yitrbhop3rtr6ypig/PHID-FILE-qctkyjkcaytlepm3qxe6/D126828.diff looks much better ... could you confirm that it matches the changes you have?

Jun 1 2022, 3:14 PM · Restricted Project, Restricted Project
lanza updated the diff for D126828: [MLIR] Add an install target for mlir-libraries.
Jun 1 2022, 3:12 PM · Restricted Project, Restricted Project
lanza updated the diff for D126828: [MLIR] Add an install target for mlir-libraries.

fix context

Jun 1 2022, 2:52 PM · Restricted Project, Restricted Project
lanza requested review of D126828: [MLIR] Add an install target for mlir-libraries.
Jun 1 2022, 2:43 PM · Restricted Project, Restricted Project

Apr 26 2022

lanza accepted D124430: [lldb] Remove Python 2 checks from the test suite.
Apr 26 2022, 9:15 AM · Restricted Project, Restricted Project
lanza accepted D124429: [lldb] Remove Python 2 support from the ScriptInterpreter plugin.

Yay, thanks Jonas!

Apr 26 2022, 9:14 AM · Restricted Project, Restricted Project

Apr 25 2022

lanza committed rG950c95cfdd75: [coroutines] Get an IntegerType from the value instead of defaulting to 64 bit (authored by lanza).
[coroutines] Get an IntegerType from the value instead of defaulting to 64 bit
Apr 25 2022, 11:11 AM · Restricted Project, Restricted Project
lanza closed D123272: [coroutines] Get an IntegerType from the value instead of defaulting to 64 bit.
Apr 25 2022, 11:11 AM · Restricted Project, Restricted Project

Apr 7 2022

lanza added a comment to D123272: [coroutines] Get an IntegerType from the value instead of defaulting to 64 bit.

When post a revision, it would be better to contain more context of the diff page. Generally, this could be done by adding the argument -U9999 when you generates the diff.

Apr 7 2022, 10:36 AM · Restricted Project, Restricted Project
lanza updated the diff for D123272: [coroutines] Get an IntegerType from the value instead of defaulting to 64 bit.

update from repo

Apr 7 2022, 10:35 AM · Restricted Project, Restricted Project

Apr 6 2022

lanza added a reviewer for D123272: [coroutines] Get an IntegerType from the value instead of defaulting to 64 bit: weiwang.
Apr 6 2022, 6:29 PM · Restricted Project, Restricted Project
lanza requested review of D123272: [coroutines] Get an IntegerType from the value instead of defaulting to 64 bit.
Apr 6 2022, 6:28 PM · Restricted Project, Restricted Project

Nov 23 2021

lanza retitled D114491: WIP -- add CLI to lldb-vscode from lldb-vscode plugin to WIP -- add CLI to lldb-vscode.
Nov 23 2021, 6:07 PM · Restricted Project, Restricted Project
lanza requested review of D114491: WIP -- add CLI to lldb-vscode.
Nov 23 2021, 6:04 PM · Restricted Project, Restricted Project

Nov 19 2021

lanza committed rG1bd4dc4f2854: [hmaptool] Port to python3 (authored by lanza).
[hmaptool] Port to python3
Nov 19 2021, 4:52 PM
lanza closed D107944: [hmaptool] Port to python3.
Nov 19 2021, 4:52 PM · Restricted Project
lanza updated the diff for D107944: [hmaptool] Port to python3.
Nov 19 2021, 11:09 AM · Restricted Project

Sep 30 2021

lanza added a reviewer for D110879: [compiler-rt] Add -fno-omit-frame-pointer check to builtins: phosek.
Sep 30 2021, 1:42 PM · Restricted Project

Aug 14 2021

lanza added a comment to D23980: Documentation for IPRA.

Sorry to bump such an old diff, but this seems relevant to have in tree. I was looking up the enable-ipra flag and this is the only reasonable reference for it.

Aug 14 2021, 7:32 PM

Aug 13 2021

lanza resigned from D70887: [lldb] Use realpath to avoid issues with symlinks in source paths.
Aug 13 2021, 11:53 AM · Restricted Project
lanza abandoned D71633: [lldb-vscode] Only close the debuggers in/out when DAP is over stdin/out.
Aug 13 2021, 11:52 AM · Restricted Project
lanza resigned from D70885: [lldb] Use explicit lldb commands on tests.
Aug 13 2021, 11:51 AM · Restricted Project
lanza abandoned D61476: [WIP] Add command interpreter to lldb-vscode.
Aug 13 2021, 11:51 AM
lanza abandoned D84269: [lldb] Add some example type anotations to python.swig.
Aug 13 2021, 11:51 AM · Restricted Project

Aug 11 2021

lanza added a reviewer for D107944: [hmaptool] Port to python3: bruno.
Aug 11 2021, 8:51 PM · Restricted Project
lanza requested review of D107944: [hmaptool] Port to python3.
Aug 11 2021, 8:48 PM · Restricted Project

Aug 5 2021

lanza committed rG7dd29ad4ae49: Clean up instcombine stpcpy test (authored by lanza).
Clean up instcombine stpcpy test
Aug 5 2021, 1:18 PM
lanza closed D107526: Clean up instcombine stpcpy test.
Aug 5 2021, 1:18 PM · Restricted Project

Aug 4 2021

lanza added a reviewer for D107526: Clean up instcombine stpcpy test: smeenai.
Aug 4 2021, 8:16 PM · Restricted Project
lanza requested review of D107526: Clean up instcombine stpcpy test.
Aug 4 2021, 8:09 PM · Restricted Project
lanza updated subscribers of D107509: Disable LibFuncs for stpcpy and stpncpy for Android < 21.

@tstellar This could get picked to llvm-13. It's a bug that was first found with us rolling out llvm-12 internally and is still present in 13.

Aug 4 2021, 8:01 PM · Restricted Project
lanza committed rG58481663692b: Disable LibFuncs for stpcpy and stpncpy for Android < 21 (authored by lanza).
Disable LibFuncs for stpcpy and stpncpy for Android < 21
Aug 4 2021, 7:49 PM
lanza closed D107509: Disable LibFuncs for stpcpy and stpncpy for Android < 21.
Aug 4 2021, 7:49 PM · Restricted Project
lanza updated the summary of D107509: Disable LibFuncs for stpcpy and stpncpy for Android < 21.
Aug 4 2021, 5:15 PM · Restricted Project
lanza updated the diff for D107509: Disable LibFuncs for stpcpy and stpncpy for Android < 21.

Add test

Aug 4 2021, 5:14 PM · Restricted Project
lanza added a reviewer for D107509: Disable LibFuncs for stpcpy and stpncpy for Android < 21: smeenai.
Aug 4 2021, 4:03 PM · Restricted Project
lanza requested review of D107509: Disable LibFuncs for stpcpy and stpncpy for Android < 21.
Aug 4 2021, 4:01 PM · Restricted Project

Jun 7 2021

lanza added a comment to D101873: [clang] Support clang -fpic -fno-semantic-interposition for AArch64.

Hey Fangrui, is there any reason this couldn't extend to armv7?

Jun 7 2021, 11:43 PM · Restricted Project

May 24 2021

lanza committed rG2f6516605615: [lld:elf] Weaken the requirement for a computed binding to be STB_LOCAL (authored by lanza).
[lld:elf] Weaken the requirement for a computed binding to be STB_LOCAL
May 24 2021, 8:33 PM
lanza closed D98686: [lld:elf] Weaken the requirement for a computed binding to be STB_LOCAL.
May 24 2021, 8:33 PM · Restricted Project

Mar 19 2021

lanza added a reviewer for D98982: Sync InstrProfData.inc between llvm and compiler-rt: MaskRay.
Mar 19 2021, 3:25 PM · Restricted Project
lanza updated subscribers of D98982: Sync InstrProfData.inc between llvm and compiler-rt.

The comment at the top says this is the master but this def seems right. @MaskRay did the compiler-rt change so I'll just tag him in.

Mar 19 2021, 3:25 PM · Restricted Project
lanza added a reviewer for D98982: Sync InstrProfData.inc between llvm and compiler-rt: davidxl.
Mar 19 2021, 3:20 PM · Restricted Project

Mar 17 2021

lanza updated the diff for D98686: [lld:elf] Weaken the requirement for a computed binding to be STB_LOCAL.

Fix check in test

Mar 17 2021, 8:40 PM · Restricted Project
lanza updated the diff for D98686: [lld:elf] Weaken the requirement for a computed binding to be STB_LOCAL.

Address Fangrui's comments

Mar 17 2021, 8:36 PM · Restricted Project
lanza abandoned D98841: [lld:elf] Weaken the requirement for a computed binding to be STB_LOCAL.
Mar 17 2021, 8:36 PM · Restricted Project
lanza updated the diff for D98841: [lld:elf] Weaken the requirement for a computed binding to be STB_LOCAL.

Address Fangrui's comments

Mar 17 2021, 8:35 PM · Restricted Project
lanza requested review of D98841: [lld:elf] Weaken the requirement for a computed binding to be STB_LOCAL.
Mar 17 2021, 8:35 PM · Restricted Project
lanza added a comment to D98686: [lld:elf] Weaken the requirement for a computed binding to be STB_LOCAL.

I'd completely rewrite the description. Consider this:

Mar 17 2021, 7:26 PM · Restricted Project
lanza updated the summary of D98686: [lld:elf] Weaken the requirement for a computed binding to be STB_LOCAL.
Mar 17 2021, 7:23 PM · Restricted Project
lanza added a comment to D98686: [lld:elf] Weaken the requirement for a computed binding to be STB_LOCAL.

Yea, I figured that this was likely a fragile ordering issue. I was thinking about an approach but didn't know enough about lld outside of the standard LTO code path, thus figured I should ask here first. Thanks for the feedback!

Mar 17 2021, 6:03 PM · Restricted Project
lanza updated the diff for D98686: [lld:elf] Weaken the requirement for a computed binding to be STB_LOCAL.

Add test case

Mar 17 2021, 5:56 PM · Restricted Project

Mar 16 2021

lanza added a comment to D98686: [lld:elf] Weaken the requirement for a computed binding to be STB_LOCAL.

The isDefined() requirement is to make version-script-weak.s work: a STB_WEAK lazy symbol, if not fetched, should be treated similar to an undefined weak symbol. An undefined symbol should not have non-VER_NDX_GLOBAL versionId values.

Mar 16 2021, 6:02 PM · Restricted Project
lanza updated the summary of D98686: [lld:elf] Weaken the requirement for a computed binding to be STB_LOCAL.
Mar 16 2021, 10:32 AM · Restricted Project
lanza added a comment to D98686: [lld:elf] Weaken the requirement for a computed binding to be STB_LOCAL.

The summary says !isLocal but the code says !isLazy. I'm assuming the code is correct.

Mar 16 2021, 10:11 AM · Restricted Project
lanza added a reviewer for D98686: [lld:elf] Weaken the requirement for a computed binding to be STB_LOCAL: smeenai.
Mar 16 2021, 1:42 AM · Restricted Project
lanza requested review of D98686: [lld:elf] Weaken the requirement for a computed binding to be STB_LOCAL.
Mar 16 2021, 1:41 AM · Restricted Project

Mar 9 2021

lanza added a comment to D98220: [WPD][ELF] Allow whole program devirtualization for version script localized symbols.

An older version of the patch had the vtables marked "hidden" in the LLVM assembly. My point was that clang would have given them a non-public vcall_visibility in that case.

Mar 9 2021, 11:38 AM · Restricted Project
lanza added inline comments to D98220: [WPD][ELF] Allow whole program devirtualization for version script localized symbols.
Mar 9 2021, 12:10 AM · Restricted Project

Mar 8 2021

lanza added a comment to D98220: [WPD][ELF] Allow whole program devirtualization for version script localized symbols.

Well right now they are marked with public visibility, which is the same thing as not having any vcall_visibility. Since they are marked in the IR as having hidden visibility, clang presumably should have marked them with a more restricted vcall_visibility (linkage unit level).

Mar 8 2021, 11:47 PM · Restricted Project
lanza added a comment to D91583: [LTO] Prevent devirtualization for symbols dynamically exported.

Do you use a local: version node in a version script to make vtable symbols local in a -shared link? LTO does not know the effective binding has become local in that case and can lose devirtualization opportunities.

Mar 8 2021, 5:23 PM · Restricted Project
lanza added inline comments to D98220: [WPD][ELF] Allow whole program devirtualization for version script localized symbols.
Mar 8 2021, 3:45 PM · Restricted Project
lanza added a comment to D98220: [WPD][ELF] Allow whole program devirtualization for version script localized symbols.

Thanks Fangrui! A cherry-pick and test and local run makes it seem like it works.

Mar 8 2021, 3:38 PM · Restricted Project
lanza added a comment to D91583: [LTO] Prevent devirtualization for symbols dynamically exported.

I see - so just to confirm, when compiling it isn't clear that these symbols are have internal or hidden visibility, but only during linking? Because otherwise clang should already have applied an appropriate vcall_visibility that allows WPD.

Mar 8 2021, 3:35 PM · Restricted Project
lanza added a comment to D91583: [LTO] Prevent devirtualization for symbols dynamically exported.

To me this is WAI. Why is "config->shared" true for your bitcode module? This should only affect when using the linker flags that assert you have whole program visibility during the link, which isn't true for a shared library and its symbols.

Mar 8 2021, 2:11 PM · Restricted Project

Mar 7 2021

lanza added a comment to D91583: [LTO] Prevent devirtualization for symbols dynamically exported.

@tejohnson I'm not sure this change is working correctly -- either that or my builds are messed up.

Mar 7 2021, 10:17 PM · Restricted Project

Feb 5 2021

lanza added a comment to D96096: [lldb] Emit type annotation in SWIG generated Python code..

Thanks, Jonas! This generates bindings but they aren't entirely functional as it generates type annotations like "lldb::SBDebugger" which Python LSPs can't figure out. I ended up adding -py3 and then running some sed post-processing to convert "lldb::\(.*\)" to \1 etc: https://github.com/lanza/lldbpybind. That lldb.py works pretty well with pyright getting type info. Figuring out how to teach the build system + swig to generate proper type annotations might require a similar post processing step.

Feb 5 2021, 12:56 PM · Restricted Project

Feb 4 2021

lanza accepted D96060: [lldb-vscode] correctly use Windows macros.

LGTM, I had to do this to fix it locally and can confirm it works.

Feb 4 2021, 10:57 AM · Restricted Project

Jan 23 2021

lanza abandoned D92541: [libcxx] Don't generate cxx-abilist for some sets of targets.
Jan 23 2021, 8:19 PM · Restricted Project

Jan 22 2021

lanza requested review of D95210: Update the ProgrammersManual explanation for ilist and iplist.
Jan 22 2021, 12:35 AM · Restricted Project, Restricted Project