Page MenuHomePhabricator

asavonic (Andrew Savonichev)
User

Projects

User does not belong to any projects.

User Details

User Since
Jun 2 2016, 11:01 PM (356 w, 1 d)

Recent Activity

Feb 9 2023

asavonic added a comment to D49723: [OpenCL] Check for invalid kernel arguments in array types.

This is admittedly a couple of years old by now, but wonder about that other intended patch - Clang still seems to consider pointers in struct arguments to be illegal in CL2.0 (and CL3.0) - please see https://godbolt.org/z/E87z66h1d

Feb 9 2023, 4:12 PM · Restricted Project
asavonic added a comment to D135462: [SelectionDAG] Do not second-guess alignment for alloca.

The patch is merged (again). Please let me know if it causes any regressions for in-tree targets or tests.

Feb 9 2023, 7:52 AM · Restricted Project, Restricted Project
asavonic committed rGc65b4d64d4b0: [SelectionDAG] Do not second-guess alignment for alloca (authored by asavonic).
[SelectionDAG] Do not second-guess alignment for alloca
Feb 9 2023, 7:46 AM · Restricted Project, Restricted Project
asavonic closed D135462: [SelectionDAG] Do not second-guess alignment for alloca.
Feb 9 2023, 7:45 AM · Restricted Project, Restricted Project

Feb 8 2023

asavonic added a comment to D135462: [SelectionDAG] Do not second-guess alignment for alloca.

Is there any progress with this patch? This patch can fix our downstream test failure which is caused by insistent alignment between IR and backend, thus affects alias analysis.

Feb 8 2023, 6:45 AM · Restricted Project, Restricted Project

Feb 1 2023

asavonic committed rGca50be8c896b: [NVPTX] Implement NVPTX AliasAnalysis (authored by asavonic).
[NVPTX] Implement NVPTX AliasAnalysis
Feb 1 2023, 5:18 AM · Restricted Project, Restricted Project
asavonic closed D124787: [NVPTX] Implement NVPTX AliasAnalysis.
Feb 1 2023, 5:18 AM · Restricted Project, Restricted Project

Jan 31 2023

asavonic added inline comments to D124787: [NVPTX] Implement NVPTX AliasAnalysis.
Jan 31 2023, 12:04 PM · Restricted Project, Restricted Project
asavonic updated the diff for D124787: [NVPTX] Implement NVPTX AliasAnalysis.
  • Fixed code style issues.
Jan 31 2023, 12:04 PM · Restricted Project, Restricted Project
asavonic added a comment to D124787: [NVPTX] Implement NVPTX AliasAnalysis.

@tra, can you please check if it is OK to merge this patch?

Jan 31 2023, 8:59 AM · Restricted Project, Restricted Project
asavonic updated the diff for D124787: [NVPTX] Implement NVPTX AliasAnalysis.
  • Rolled back changes for param address space: treat it as constant memory until cvta.param is supported.
  • Changed tests to use opaque pointers.
Jan 31 2023, 8:58 AM · Restricted Project, Restricted Project

Jan 25 2023

asavonic added inline comments to D124787: [NVPTX] Implement NVPTX AliasAnalysis.
Jan 25 2023, 4:44 PM · Restricted Project, Restricted Project

Jan 24 2023

asavonic added a comment to D142508: [OpenMP][libomptarget] Fix alignment calculation for mapping struct members..

Just to summarize, the current implementation of padding in libomptarget has a bug, but it was hidden until we changed default alignment of allocas in D135462. This bug is now gating D135462 and Pavel and I were trying to investigate it. @jdoerfert, @grokos, your feedback is very welcome, since we're not really familiar with the code in OpenMP runtime.

Jan 24 2023, 3:52 PM · Restricted Project, Restricted Project

Jan 14 2023

asavonic committed rG75345fb11638: [NVPTX] Drop memory references of LDG/LDU (authored by asavonic).
[NVPTX] Drop memory references of LDG/LDU
Jan 14 2023, 1:19 PM · Restricted Project, Restricted Project
asavonic closed D112466: [NVPTX] Drop memory references of LDG/LDU.
Jan 14 2023, 1:18 PM · Restricted Project, Restricted Project

Jan 12 2023

asavonic added inline comments to D112466: [NVPTX] Drop memory references of LDG/LDU.
Jan 12 2023, 4:40 AM · Restricted Project, Restricted Project

Jan 11 2023

asavonic added a comment to D112466: [NVPTX] Drop memory references of LDG/LDU.

I think the current patch is the way to go: we want to treat LDU and LDG as regular instructions and exclude them from memory analysis. Therefore memory references are not needed and we can drop them.

Jan 11 2023, 10:29 AM · Restricted Project, Restricted Project
asavonic updated the diff for D112466: [NVPTX] Drop memory references of LDG/LDU.
  • Rebased
Jan 11 2023, 10:29 AM · Restricted Project, Restricted Project

Jan 10 2023

asavonic committed rG8913b35f082d: [NVPTX] Enforce minumum alignment of 4 for byval parametrs in a function… (authored by pavelkopyl).
[NVPTX] Enforce minumum alignment of 4 for byval parametrs in a function…
Jan 10 2023, 4:23 AM · Restricted Project, Restricted Project
asavonic committed rGd6775052de6b: [NVPTX] Set default version of architecture to SM_30, PTX to 6.0. (authored by pavelkopyl).
[NVPTX] Set default version of architecture to SM_30, PTX to 6.0.
Jan 10 2023, 4:23 AM · Restricted Project, Restricted Project
asavonic closed D140581: [NVPTX] Enforce minumum alignment of 4 for byval parametrs in a function prototype.
Jan 10 2023, 4:23 AM · Restricted Project, Restricted Project
asavonic closed D141054: [NVPTX] Set default version of architecture to SM_30, PTX to 6.0..
Jan 10 2023, 4:23 AM · Restricted Project, Restricted Project

Jan 6 2023

asavonic added inline comments to D141054: [NVPTX] Set default version of architecture to SM_30, PTX to 6.0..
Jan 6 2023, 2:24 PM · Restricted Project, Restricted Project

Jan 4 2023

asavonic closed D140754: [NFC][Assignment Tracking Analysis] Add x86 triple to lower-offset-expression.ll.

Committed in rG6ff87fed441680f0d673186e602c6017fef68640

Jan 4 2023, 4:08 AM · Restricted Project, Restricted Project
asavonic committed rG6ff87fed4416: [NFC] Add x86 triple to lower-offset-expression.ll (authored by pavelkopyl).
[NFC] Add x86 triple to lower-offset-expression.ll
Jan 4 2023, 4:00 AM · Restricted Project, Restricted Project

Dec 28 2022

asavonic accepted D140704: [NVPTX] Replace PTX's ManagedStringPool with StringSaver.

LGTM

Dec 28 2022, 11:04 AM · Restricted Project, Restricted Project
asavonic committed rGfa023e0fe816: [NVPTX] Emit .noreturn directive (authored by pavelkopyl).
[NVPTX] Emit .noreturn directive
Dec 28 2022, 10:46 AM · Restricted Project, Restricted Project
asavonic closed D140238: [NVPTX] Emit .noreturn directive.
Dec 28 2022, 10:46 AM · Restricted Project, Restricted Project

Dec 20 2022

asavonic updated subscribers of D135462: [SelectionDAG] Do not second-guess alignment for alloca.

It appears that the issue is caused by libomptarget mapping code that adds padding if the begin address does not have alignment of 8 (search for "alignment" in omptarget.cpp). The problem is that the padding is not applied consistently, so we may have a mapping without the padding (size == 8), and then get a request for a mapping with the padding (size == 12). Notice that we don't have Using a padding of 4 bytes for begin address for the first mapping, and we have it for the same exact pointer for the second mapping.

Dec 20 2022, 12:26 PM · Restricted Project, Restricted Project

Dec 19 2022

asavonic added a comment to D135462: [SelectionDAG] Do not second-guess alignment for alloca.

I checked OpenMP tests, and the difference is pretty much what was expected. This is what we have as an input (the patch does not change the IR):

Dec 19 2022, 1:25 PM · Restricted Project, Restricted Project

Dec 15 2022

asavonic reopened D135462: [SelectionDAG] Do not second-guess alignment for alloca.
Dec 15 2022, 11:15 AM · Restricted Project, Restricted Project
asavonic added a comment to D135462: [SelectionDAG] Do not second-guess alignment for alloca.

hello , this commit is breaking our buildbot : could you address please ? https://lab.llvm.org/buildbot/#/builders/193

Dec 15 2022, 11:15 AM · Restricted Project, Restricted Project
asavonic committed rGffedf47d8b79: [SelectionDAG] Do not second-guess alignment for alloca (authored by asavonic).
[SelectionDAG] Do not second-guess alignment for alloca
Dec 15 2022, 7:19 AM · Restricted Project, Restricted Project
asavonic closed D135462: [SelectionDAG] Do not second-guess alignment for alloca.
Dec 15 2022, 7:18 AM · Restricted Project, Restricted Project

Dec 13 2022

asavonic committed rG619b7cecf355: [NVPTX] Backend support for variadic functions (authored by pavelkopyl).
[NVPTX] Backend support for variadic functions
Dec 13 2022, 8:08 AM · Restricted Project, Restricted Project
asavonic closed D138531: [PATCH] [NVPTX] Backend support for variadic functions.
Dec 13 2022, 8:08 AM · Restricted Project, Restricted Project

Dec 12 2022

asavonic added a comment to D135462: [SelectionDAG] Do not second-guess alignment for alloca.

@efriedma, can you please check this patch again?

Dec 12 2022, 9:19 AM · Restricted Project, Restricted Project
asavonic updated the diff for D135462: [SelectionDAG] Do not second-guess alignment for alloca.
  • Rebased.
Dec 12 2022, 9:18 AM · Restricted Project, Restricted Project
asavonic updated the diff for D124787: [NVPTX] Implement NVPTX AliasAnalysis.
  • param pointers may alias global pointers.
  • added more test cases for param.
Dec 12 2022, 7:43 AM · Restricted Project, Restricted Project
asavonic added inline comments to D124787: [NVPTX] Implement NVPTX AliasAnalysis.
Dec 12 2022, 7:39 AM · Restricted Project, Restricted Project

Dec 9 2022

asavonic added a comment to D124787: [NVPTX] Implement NVPTX AliasAnalysis.

@nikic, @tra, please let me know if any other changes are needed.

Dec 9 2022, 7:34 AM · Restricted Project, Restricted Project
asavonic updated the diff for D124787: [NVPTX] Implement NVPTX AliasAnalysis.
  • Rebased.
  • Replaced pointsToConstantMemory with getModRefInfoMask due to the API change.
  • Removed DataLayout variable that was unused.
Dec 9 2022, 7:32 AM · Restricted Project, Restricted Project

Dec 1 2022

asavonic added inline comments to D138883: [PowerPC] find and reuse ConstantSplatVector to combine constant store into extract and store.
Dec 1 2022, 12:22 PM · Restricted Project, Restricted Project

Nov 15 2022

asavonic committed rG4f9321f92caf: [NVPTX] Fix alignment for arguments of function pointer calls (authored by asavonic).
[NVPTX] Fix alignment for arguments of function pointer calls
Nov 15 2022, 10:53 AM · Restricted Project, Restricted Project
asavonic committed rGc38fa7c01403: [NVPTX] Fix pointer type for short 32-bit pointers (authored by asavonic).
[NVPTX] Fix pointer type for short 32-bit pointers
Nov 15 2022, 10:53 AM · Restricted Project, Restricted Project
asavonic committed rG69e73d076b57: [NVPTX] Fix pointer argument declaration for --nvptx-short-ptr (authored by asavonic).
[NVPTX] Fix pointer argument declaration for --nvptx-short-ptr
Nov 15 2022, 10:53 AM · Restricted Project, Restricted Project
asavonic closed D135708: [NVPTX] Fix alignment for arguments of function pointer calls.
Nov 15 2022, 10:53 AM · Restricted Project, Restricted Project
asavonic closed D135674: [NVPTX] Fix pointer argument declaration for --nvptx-short-ptr.
Nov 15 2022, 10:52 AM · Restricted Project, Restricted Project
asavonic closed D127668: [NVPTX] Fix pointer type for short 32-bit pointers.
Nov 15 2022, 10:52 AM · Restricted Project, Restricted Project

Nov 1 2022

asavonic added inline comments to D137154: Adding nvvm_reflect clang builtin.
Nov 1 2022, 7:01 AM · Restricted Project, Restricted Project, Restricted Project
asavonic added inline comments to D137154: Adding nvvm_reflect clang builtin.
Nov 1 2022, 6:01 AM · Restricted Project, Restricted Project, Restricted Project

Oct 25 2022

asavonic added a comment to D128840: [lit] Pass through QEMU's configuration environmental variables.

The patch looks fine to me. TEST_SUITE_RUN_UNDER is a great alternative, but just setting these env variables should be enough for now.
@jdenny, can you please take a look at this patch?

Oct 25 2022, 2:03 PM · Restricted Project, Restricted Project
asavonic updated subscribers of D128840: [lit] Pass through QEMU's configuration environmental variables.
Oct 25 2022, 1:37 PM · Restricted Project, Restricted Project

Oct 14 2022

asavonic added inline comments to D135708: [NVPTX] Fix alignment for arguments of function pointer calls.
Oct 14 2022, 1:39 AM · Restricted Project, Restricted Project
asavonic updated the diff for D135708: [NVPTX] Fix alignment for arguments of function pointer calls.
  • Fixed typos
Oct 14 2022, 1:39 AM · Restricted Project, Restricted Project

Oct 13 2022

asavonic added inline comments to D135674: [NVPTX] Fix pointer argument declaration for --nvptx-short-ptr.
Oct 13 2022, 2:48 AM · Restricted Project, Restricted Project
asavonic updated the diff for D135674: [NVPTX] Fix pointer argument declaration for --nvptx-short-ptr.
  • Applied code review comments
Oct 13 2022, 2:48 AM · Restricted Project, Restricted Project

Oct 11 2022

asavonic added a comment to D135708: [NVPTX] Fix alignment for arguments of function pointer calls.

Without the patch, @callee has alignment of 16, while the call site uses alignment of 4 for param memory.
We also need D134548 to fix handling of bitcasts.

Oct 11 2022, 1:30 PM · Restricted Project, Restricted Project
asavonic requested review of D135708: [NVPTX] Fix alignment for arguments of function pointer calls.
Oct 11 2022, 1:20 PM · Restricted Project, Restricted Project
asavonic added a comment to D134548: [NVPTX] Fix a segfault for bitcasted calls with byval params.

LGTM.

Oct 11 2022, 8:56 AM · Restricted Project, Restricted Project
asavonic requested review of D135674: [NVPTX] Fix pointer argument declaration for --nvptx-short-ptr.
Oct 11 2022, 7:23 AM · Restricted Project, Restricted Project

Oct 10 2022

asavonic added a comment to D124787: [NVPTX] Implement NVPTX AliasAnalysis.

This took a while, I'm sorry for not following up earlier.

Oct 10 2022, 11:38 AM · Restricted Project, Restricted Project
asavonic updated the diff for D124787: [NVPTX] Implement NVPTX AliasAnalysis.
  • Rebased
  • Removed calls to AAResultBase and the extra check for GV->isConstant.
Oct 10 2022, 11:38 AM · Restricted Project, Restricted Project
asavonic added a comment to D135462: [SelectionDAG] Do not second-guess alignment for alloca.

Given we're de-emphasizing the type of allocas, this probably makes sense? We should be careful that this doesn't have unexpected effects, though; decreasing the alignment of an alloca could affect code generation. (For example, see D134282.)

Oct 10 2022, 3:32 AM · Restricted Project, Restricted Project
asavonic updated the diff for D135462: [SelectionDAG] Do not second-guess alignment for alloca.
  • Removed an outdated comment
  • Added another testcase to AArch64/preferred-alignment.ll
Oct 10 2022, 3:29 AM · Restricted Project, Restricted Project

Oct 7 2022

asavonic added a comment to D135462: [SelectionDAG] Do not second-guess alignment for alloca.

A similar issue was discussed and fixed in D79532, where promotion of alignment caused stack realignment.
This patch now removes promotion of alignment, so we always use the specified alignment.

Oct 7 2022, 10:24 AM · Restricted Project, Restricted Project
asavonic requested review of D135462: [SelectionDAG] Do not second-guess alignment for alloca.
Oct 7 2022, 10:14 AM · Restricted Project, Restricted Project

Oct 3 2022

asavonic committed rGd420110a1e9d: [NVPTX] Fix constant expression initializers for global variables (authored by asavonic).
[NVPTX] Fix constant expression initializers for global variables
Oct 3 2022, 2:31 PM · Restricted Project, Restricted Project
asavonic committed rG5585d99835e8: [NVPTX] Fix issues in ptxas integration to LIT tests (authored by asavonic).
[NVPTX] Fix issues in ptxas integration to LIT tests
Oct 3 2022, 2:31 PM · Restricted Project, Restricted Project
asavonic closed D127878: [NVPTX] Fix constant expression initializers for global variables.
Oct 3 2022, 2:31 PM · Restricted Project, Restricted Project
asavonic closed D127866: [NVPTX] Fix issues in ptxas integration to LIT tests.
Oct 3 2022, 2:31 PM · Restricted Project, Restricted Project

Jun 27 2022

asavonic added inline comments to D124787: [NVPTX] Implement NVPTX AliasAnalysis.
Jun 27 2022, 11:33 AM · Restricted Project, Restricted Project
asavonic updated the diff for D124787: [NVPTX] Implement NVPTX AliasAnalysis.
Jun 27 2022, 11:33 AM · Restricted Project, Restricted Project

Jun 15 2022

asavonic added inline comments to D127668: [NVPTX] Fix pointer type for short 32-bit pointers.
Jun 15 2022, 3:21 PM · Restricted Project, Restricted Project
asavonic requested review of D127878: [NVPTX] Fix constant expression initializers for global variables.
Jun 15 2022, 10:07 AM · Restricted Project, Restricted Project
asavonic requested review of D127866: [NVPTX] Fix issues in ptxas integration to LIT tests.
Jun 15 2022, 8:19 AM · Restricted Project, Restricted Project

Jun 13 2022

asavonic updated the diff for D127668: [NVPTX] Fix pointer type for short 32-bit pointers.
  • Added ptxas RUN lines.
  • Removed test case with .local global variable because ptxas does not support them.
Jun 13 2022, 10:14 AM · Restricted Project, Restricted Project
asavonic added inline comments to D127668: [NVPTX] Fix pointer type for short 32-bit pointers.
Jun 13 2022, 10:05 AM · Restricted Project, Restricted Project
asavonic requested review of D127668: [NVPTX] Fix pointer type for short 32-bit pointers.
Jun 13 2022, 9:46 AM · Restricted Project, Restricted Project

May 30 2022

asavonic accepted D126632: [AArch64] Look through copy in MachineCombiner FMUL patterns..

LGTM, thanks!

May 30 2022, 1:29 AM · Restricted Project, Restricted Project

May 18 2022

asavonic added a comment to D125693: [DebugInfo] Support types, imports and static locals declared in a lexical block (3/5).

Thanks a lot for the patch! It would be great to get this issue finally fixed. I assume that this is the main patch, other patches in the stack seem like just preparation/adjustments needed for this one to work.

May 18 2022, 12:21 PM · debug-info, Restricted Project, Restricted Project, Restricted Project

May 3 2022

asavonic added a comment to D119669: [NVPTX] Prefix "$L__" for branch label names.

So, prefixing with $ does not solve the problem completely.

Indeed it's still possible to break compilation for both clang and nvcc: https://godbolt.org/z/9h649eMMn

May 3 2022, 12:58 PM · Restricted Project, Restricted Project

May 2 2022

Herald added a project to D112466: [NVPTX] Drop memory references of LDG/LDU: Restricted Project.

Sorry, this got pushed back by other things, but I'd like to return to this conversation. I've uploaded a patch to add a simple AA that takes NVPTX address spaces into account and implements pointsToConstantMemory (D124787). This patch should be useful on its own, but I'm no longer sure that it is enough to safely (performace-wise) add mayLoad to LDU/LDG instructions.

May 2 2022, 10:58 AM · Restricted Project, Restricted Project
asavonic requested review of D124787: [NVPTX] Implement NVPTX AliasAnalysis.
May 2 2022, 10:55 AM · Restricted Project, Restricted Project

Apr 28 2022

asavonic added a comment to D121727: [NVPTX] Integrate ptxas to LIT tests.

It looks very weird to me to have LLVM's test suite support calling some proprietary tool. I can see how this is useful, but imho it doesn't belong into LLVM itself.

This is both for practical and other reasons.

From a practical point of view, if we rely on this tool for testing in LLVM, it means we can't run LLVM's tests on platforms that that tool doesn't run on.

Apr 28 2022, 7:11 AM · Restricted Project, Restricted Project
asavonic committed rG0f1b5f115a7f: [NVPTX] Integrate ptxas to LIT tests (authored by asavonic).
[NVPTX] Integrate ptxas to LIT tests
Apr 28 2022, 5:03 AM · Restricted Project, Restricted Project
asavonic closed D121727: [NVPTX] Integrate ptxas to LIT tests.
Apr 28 2022, 5:02 AM · Restricted Project, Restricted Project

Apr 27 2022

asavonic committed rG1041a9642ba0: [lit] Support %if ... %else syntax for RUN lines (authored by asavonic).
[lit] Support %if ... %else syntax for RUN lines
Apr 27 2022, 10:30 AM · Restricted Project, Restricted Project
asavonic closed D122569: [lit] Support %if ... %else syntax for RUN lines.
Apr 27 2022, 10:30 AM · Restricted Project, Restricted Project
asavonic closed D124473: [NVPTX] Fix NVPTX DebugInfo tests on Windows.

Merged 99333026607f.

Apr 27 2022, 7:34 AM · Restricted Project, Restricted Project
asavonic committed rG99333026607f: [NVPTX] Fix NVPTX DebugInfo tests on Windows (authored by asavonic).
[NVPTX] Fix NVPTX DebugInfo tests on Windows
Apr 27 2022, 7:33 AM · Restricted Project, Restricted Project
asavonic updated the diff for D124473: [NVPTX] Fix NVPTX DebugInfo tests on Windows.
Apr 27 2022, 3:09 AM · Restricted Project, Restricted Project
asavonic updated the diff for D124473: [NVPTX] Fix NVPTX DebugInfo tests on Windows.

I missed two other tests that failed because of the same issue: debug-file-loc.ll and debug-file-loc-only.ll.
@thakis tried to fix them in a1bb5719eca6 (thanks a lot!), but I'm not sure if it helped - we need two backslash characters in the regex.

Apr 27 2022, 2:30 AM · Restricted Project, Restricted Project

Apr 26 2022

asavonic requested review of D124473: [NVPTX] Fix NVPTX DebugInfo tests on Windows.
Apr 26 2022, 12:54 PM · Restricted Project, Restricted Project
asavonic committed rG8628b54038e9: [NVPTX] Temporary disable dwarf-file-dir.ll on Windows (authored by asavonic).
[NVPTX] Temporary disable dwarf-file-dir.ll on Windows
Apr 26 2022, 12:34 PM · Restricted Project, Restricted Project
asavonic committed rGe44795048373: [NFC] Fix order of initialization in MCTargetOptions (authored by asavonic).
[NFC] Fix order of initialization in MCTargetOptions
Apr 26 2022, 12:34 PM · Restricted Project, Restricted Project
asavonic committed rG0a27622a1d62: [NVPTX] Disable DWARF .file directory for PTX (authored by asavonic).
[NVPTX] Disable DWARF .file directory for PTX
Apr 26 2022, 11:44 AM · Restricted Project, Restricted Project, Restricted Project
asavonic closed D121299: [NVPTX] Disable DWARF .file directory for PTX.
Apr 26 2022, 11:43 AM · Restricted Project, Restricted Project, Restricted Project
asavonic committed rG541cbeeddbe9: [NVPTX][tests] add "XFAIL: nvptx" for some tests (authored by i-chebykin).
[NVPTX][tests] add "XFAIL: nvptx" for some tests
Apr 26 2022, 7:28 AM · Restricted Project, Restricted Project
asavonic committed rG84cf290c8480: [NVPTX][tests] Do not run the tests which are not supported by nvptx (authored by i-chebykin).
[NVPTX][tests] Do not run the tests which are not supported by nvptx
Apr 26 2022, 7:28 AM · Restricted Project, Restricted Project