Page MenuHomePhabricator

Please use GitHub pull requests for new patches. Phabricator shutdown timeline

hnrklssn (Henrik G Olsson)
User

Projects

User does not belong to any projects.

User Details

User Since
Apr 29 2020, 8:06 AM (178 w, 1 d)

Recent Activity

Fri, Sep 1

hnrklssn added inline comments to D158864: [Code Coverage] Add a script to check code coverage of a patch.
Fri, Sep 1, 3:43 AM · Restricted Project, Restricted Project

Aug 29 2023

hnrklssn requested review of D159087: Make things less hard coded.
Aug 29 2023, 5:55 AM · Restricted Project, Restricted Project
hnrklssn added inline comments to D158864: [Code Coverage] Add a script to check code coverage of a patch.
Aug 29 2023, 3:22 AM · Restricted Project, Restricted Project
hnrklssn added inline comments to D158864: [Code Coverage] Add a script to check code coverage of a patch.
Aug 29 2023, 2:00 AM · Restricted Project, Restricted Project

Jul 21 2023

hnrklssn accepted D154280: [LIT] Added an option to llvm-lit to emit the necessary test coverage data, divided per test case.

LGTM

Jul 21 2023, 2:22 AM · Restricted Project, Restricted Project

Jul 20 2023

hnrklssn added a comment to D154280: [LIT] Added an option to llvm-lit to emit the necessary test coverage data, divided per test case.

Hi,

writing test case in llvm/utils/lit/tests seems difficult, as when we run them, there is no .script file generated as in case with other llvm or clang test cases. So the patch is not working there and the env variable is not setting. I am thinking if we can submit in this way without testcase since lit code is very stable so chances of breaking something is less.

shivam@linux ~/.llvm/llvm-upstream/build (arcpatch-D154280) $ bin/llvm-lit -a -v --per-test-coverage  ../clang/test/SemaCXX/bool.cpp

llvm-lit: /home/shivam/.llvm/llvm-upstream/llvm/utils/lit/lit/llvm/config.py:484: note: using clang: /home/shivam/.llvm/llvm-upstream/build/bin/clang
-- Testing: 1 tests, 1 workers --
PASS: Clang :: SemaCXX/bool.cpp (1 of 1)
Script:
--
export LLVM_PROFILE_FILE=bool0.profraw && : 'RUN: at line 1';   /home/shivam/.llvm/llvm-upstream/build/bin/clang -cc1 -internal-isystem /home/shivam/.llvm/llvm-upstream/build/lib/clang/17/include -nostdsysteminc -std=c++14 -fsyntax-only -verify=expected,precxx17 -Wno-constant-conversion /home/shivam/.llvm/llvm-upstream/clang/test/SemaCXX/bool.cpp
export LLVM_PROFILE_FILE=bool1.profraw && : 'RUN: at line 2';   /home/shivam/.llvm/llvm-upstream/build/bin/clang -cc1 -internal-isystem /home/shivam/.llvm/llvm-upstream/build/lib/clang/17/include -nostdsysteminc -std=c++14 -fsyntax-only -verify=expected,precxx17 -Wno-constant-conversion -Wno-deprecated -Wdeprecated-increment-bool /home/shivam/.llvm/llvm-upstream/clang/test/SemaCXX/bool.cpp
export LLVM_PROFILE_FILE=bool2.profraw && : 'RUN: at line 3';   /home/shivam/.llvm/llvm-upstream/build/bin/clang -cc1 -internal-isystem /home/shivam/.llvm/llvm-upstream/build/lib/clang/17/include -nostdsysteminc -std=c++2b -fsyntax-only -verify=expected,cxx17 -Wno-constant-conversion -Wno-deprecated -Wdeprecated-increment-bool /home/shivam/.llvm/llvm-upstream/clang/test/SemaCXX/bool.cpp
--
Exit Code: 0


********************

Testing Time: 0.76s
  Passed: 1
shivam@linux ~/.llvm/llvm-upstream/build (arcpatch-D154280) $ find . -type f -name "*.profraw" | grep -i "profraw"

./default.profraw
./tools/clang/test/SemaCXX/bool1.profraw
./tools/clang/test/SemaCXX/bool0.profraw
./tools/clang/test/SemaCXX/bool2.profraw
Jul 20 2023, 10:56 AM · Restricted Project, Restricted Project

Jul 5 2023

hnrklssn added a comment to D154520: [UTC] Adapt version matcher to glob CLANG_VENDOR.

That works. Thanks a lot, @hnrklssn

Jul 5 2023, 10:02 AM · Restricted Project, Restricted Project, Restricted Project
hnrklssn added a comment to rG8a3fdf7b9089: [UTC] Add fallback support for specific metadata, and check their defs.

@abrachet Created D154520. Can you verify that it works for you?

Jul 5 2023, 9:19 AM · Restricted Project, Restricted Project, Restricted Project
hnrklssn requested review of D154520: [UTC] Adapt version matcher to glob CLANG_VENDOR.
Jul 5 2023, 9:16 AM · Restricted Project, Restricted Project, Restricted Project
hnrklssn added a comment to rG8a3fdf7b9089: [UTC] Add fallback support for specific metadata, and check their defs.

@nemanjai @TWeaver It should be fixed by 4488ee2. Are the buildbots still failing with that commit?

Jul 5 2023, 8:19 AM · Restricted Project, Restricted Project, Restricted Project
hnrklssn updated the diff for D154504: [UTC] Fix git URL regex.

Handle lack of git URL, as well as custom additions to the version message.

Jul 5 2023, 7:44 AM · Restricted Project, Restricted Project
hnrklssn added inline comments to D154504: [UTC] Fix git URL regex.
Jul 5 2023, 7:41 AM · Restricted Project, Restricted Project
hnrklssn added inline comments to D154504: [UTC] Fix git URL regex.
Jul 5 2023, 7:15 AM · Restricted Project, Restricted Project
hnrklssn added a comment to D154504: [UTC] Fix git URL regex.

This patch has already been landed as 6d64faf. This is my first time requesting a post-commit review (since I broke the buildbot and the fix was trivial), so please let me know if I missed something in that process.

Jul 5 2023, 5:41 AM · Restricted Project, Restricted Project
hnrklssn requested review of D154504: [UTC] Fix git URL regex.
Jul 5 2023, 5:38 AM · Restricted Project, Restricted Project
hnrklssn committed rG6d64faf3b1d9: [UTC] Fix git URL regex (authored by hnrklssn).
[UTC] Fix git URL regex
Jul 5 2023, 5:38 AM · Restricted Project, Restricted Project
hnrklssn committed rG8a3fdf7b9089: [UTC] Add fallback support for specific metadata, and check their defs (authored by hnrklssn).
[UTC] Add fallback support for specific metadata, and check their defs
Jul 5 2023, 5:05 AM · Restricted Project, Restricted Project, Restricted Project
hnrklssn retitled D148216: [UTC] Add fallback support for specific metadata, and check their defs from Add support for annotations in UpdateTestChecks (NFC) to [UTC] Add fallback support for specific metadata, and check their defs.
Jul 5 2023, 4:56 AM · Restricted Project, Restricted Project, Restricted Project
hnrklssn updated the diff for D148216: [UTC] Add fallback support for specific metadata, and check their defs.

Update test cases after rebasing on ToT

Jul 5 2023, 4:55 AM · Restricted Project, Restricted Project, Restricted Project
hnrklssn updated the diff for D148216: [UTC] Add fallback support for specific metadata, and check their defs.

Add unnamed global test case

Jul 5 2023, 3:26 AM · Restricted Project, Restricted Project, Restricted Project

Jul 4 2023

hnrklssn added a comment to D148216: [UTC] Add fallback support for specific metadata, and check their defs.

@nikic Are you happy with the current patchset?

Jul 4 2023, 2:56 AM · Restricted Project, Restricted Project, Restricted Project
hnrklssn added inline comments to D154280: [LIT] Added an option to llvm-lit to emit the necessary test coverage data, divided per test case.
Jul 4 2023, 2:27 AM · Restricted Project, Restricted Project

Jul 2 2023

hnrklssn added inline comments to D154280: [LIT] Added an option to llvm-lit to emit the necessary test coverage data, divided per test case.
Jul 2 2023, 5:31 AM · Restricted Project, Restricted Project

Jul 1 2023

hnrklssn added a comment to D154280: [LIT] Added an option to llvm-lit to emit the necessary test coverage data, divided per test case.

Please also add a test of lit itself (see llvm/utils/lit/tests). I think something using --emit-coverage on a test that echoes $LLVM_PROFILE_FILE should be enough.

Jul 1 2023, 7:00 AM · Restricted Project, Restricted Project

Jun 27 2023

hnrklssn added a comment to D148216: [UTC] Add fallback support for specific metadata, and check their defs.

@nikic Ping :)

Jun 27 2023, 7:16 AM · Restricted Project, Restricted Project, Restricted Project

Jun 20 2023

hnrklssn added a comment to D148216: [UTC] Add fallback support for specific metadata, and check their defs.

There are some test failures.

I believe there is one bug with the handling of unnamed globals. Previously we produced this:

; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals --version 2
; RUN: opt -S < %s | FileCheck %s
@0 = global i32 0

;.
; CHECK: @[[GLOB0:[0-9]+]] = global i32 0
;.
define i32 @test() {
; CHECK-LABEL: define i32 @test() {
; CHECK-NEXT:    [[V:%.*]] = load i32, ptr @[[GLOB0]], align 4
; CHECK-NEXT:    ret i32 [[V]]
;
  %v = load i32, ptr @0
  ret i32 %v
}

And now we instead check CHECK: @0 = global i32 0, so there is a mismatch between definition and use. I believe it does make sense to keep the wildcard names for unnamed globals.

On the same test case, if I keep rerunning update_test_checks on the same file, it keeps adding extra CHECK: @0 = global i32 0 lines at the start (before the first ;.. That didn't happen previously.

Jun 20 2023, 5:02 AM · Restricted Project, Restricted Project, Restricted Project
hnrklssn updated the diff for D148216: [UTC] Add fallback support for specific metadata, and check their defs.

Added back regex matchers for anonymous global values

Jun 20 2023, 5:02 AM · Restricted Project, Restricted Project, Restricted Project

Jun 19 2023

hnrklssn added inline comments to D148216: [UTC] Add fallback support for specific metadata, and check their defs.
Jun 19 2023, 11:29 AM · Restricted Project, Restricted Project, Restricted Project
hnrklssn updated the diff for D148216: [UTC] Add fallback support for specific metadata, and check their defs.

Keep supporting --check-globals without explicit level as meaning '--check-globals all'

Jun 19 2023, 11:27 AM · Restricted Project, Restricted Project, Restricted Project
hnrklssn added a comment to D148216: [UTC] Add fallback support for specific metadata, and check their defs.

could you put a little more information in the commit message please. "It won't do X when we do Y", could mean a lot of things. We don't do Y anymore, or we do X' now, with various choices for X'.

Jun 19 2023, 7:50 AM · Restricted Project, Restricted Project, Restricted Project
hnrklssn updated the diff for D148216: [UTC] Add fallback support for specific metadata, and check their defs.

Rebase after reformatting with Black, update commit message

Jun 19 2023, 7:39 AM · Restricted Project, Restricted Project, Restricted Project

Jun 14 2023

hnrklssn added a comment to D148216: [UTC] Add fallback support for specific metadata, and check their defs.

@nikic Ping :)

Jun 14 2023, 3:28 AM · Restricted Project, Restricted Project, Restricted Project

Jun 7 2023

hnrklssn added a comment to D148216: [UTC] Add fallback support for specific metadata, and check their defs.

@nikic Did you have a look at the new patch?

Jun 7 2023, 6:22 AM · Restricted Project, Restricted Project, Restricted Project

May 30 2023

hnrklssn added inline comments to D148216: [UTC] Add fallback support for specific metadata, and check their defs.
May 30 2023, 7:46 AM · Restricted Project, Restricted Project, Restricted Project
hnrklssn updated the diff for D148216: [UTC] Add fallback support for specific metadata, and check their defs.

Revert checker behaviour for global variables to check hard-coded identifiers
Remove 'seen' mode
Replace 'transitive' mode with 'smart', where attributes are no longer checked as metadata
Introduce version bump to v3, and make 'smart' mode the default in v3

May 30 2023, 7:36 AM · Restricted Project, Restricted Project, Restricted Project
hnrklssn added inline comments to D151660: [InstCombine] (icmp eq A, -1) & (icmp eq B, -1) --> (icmp eq (A&B), -1).
May 30 2023, 1:08 AM · Restricted Project, Restricted Project

May 25 2023

hnrklssn added inline comments to D148216: [UTC] Add fallback support for specific metadata, and check their defs.
May 25 2023, 8:32 AM · Restricted Project, Restricted Project, Restricted Project

May 24 2023

hnrklssn added inline comments to D148216: [UTC] Add fallback support for specific metadata, and check their defs.
May 24 2023, 7:35 AM · Restricted Project, Restricted Project, Restricted Project
hnrklssn updated the diff for D148216: [UTC] Add fallback support for specific metadata, and check their defs.

Overhauled how update_cc_tests.py checks globals

May 24 2023, 7:25 AM · Restricted Project, Restricted Project, Restricted Project

May 22 2023

hnrklssn added inline comments to D148216: [UTC] Add fallback support for specific metadata, and check their defs.
May 22 2023, 7:58 AM · Restricted Project, Restricted Project, Restricted Project

May 4 2023

hnrklssn added inline comments to D148216: [UTC] Add fallback support for specific metadata, and check their defs.
May 4 2023, 8:14 AM · Restricted Project, Restricted Project, Restricted Project

Apr 26 2023

hnrklssn added inline comments to D148216: [UTC] Add fallback support for specific metadata, and check their defs.
Apr 26 2023, 6:23 AM · Restricted Project, Restricted Project, Restricted Project

Apr 25 2023

hnrklssn added a comment to D148216: [UTC] Add fallback support for specific metadata, and check their defs.

We should probably just use the META fallback for all metadata not already explicitly handled. I think there's pretty little value in adding a special name for each metadata kind.

Apr 25 2023, 12:41 PM · Restricted Project, Restricted Project, Restricted Project
hnrklssn added a comment to D148216: [UTC] Add fallback support for specific metadata, and check their defs.

Change looks good to me, but if clang can't emit these yet we should probably wait until committing this? Do you have a link to a review that uses this metadata?

Apr 25 2023, 12:39 PM · Restricted Project, Restricted Project, Restricted Project

Apr 14 2023

hnrklssn updated the diff for D148216: [UTC] Add fallback support for specific metadata, and check their defs.

Add test case emitting !annotation from clang.
Make annotation matching a generic metadata fallback.

Apr 14 2023, 7:34 AM · Restricted Project, Restricted Project, Restricted Project

Apr 13 2023

hnrklssn added a comment to D148216: [UTC] Add fallback support for specific metadata, and check their defs.

I'm not familiar with any upstream ways to trigger !annotations so I unfortunately don't have any test updates to upstream at this time. I'm open to suggestions for adding ways to test the change though.

Apr 13 2023, 5:02 AM · Restricted Project, Restricted Project, Restricted Project
hnrklssn added reviewers for D148216: [UTC] Add fallback support for specific metadata, and check their defs: arichardson, nhaehnle.
Apr 13 2023, 4:53 AM · Restricted Project, Restricted Project, Restricted Project
hnrklssn requested review of D148216: [UTC] Add fallback support for specific metadata, and check their defs.
Apr 13 2023, 4:50 AM · Restricted Project, Restricted Project, Restricted Project

Mar 14 2023

hnrklssn committed rW9e53b8b0f576: Edit project plan to not abuse environment variable (authored by hnrklssn).
Edit project plan to not abuse environment variable
Mar 14 2023, 4:05 AM · Restricted Project

Feb 21 2023

hnrklssn committed rWc5dd29f57241: Add GSoC'23 proposal to add tool for patch based test coverage (authored by hnrklssn).
Add GSoC'23 proposal to add tool for patch based test coverage
Feb 21 2023, 3:46 AM · Restricted Project

Nov 30 2022

hnrklssn committed rG8fa2e9353859: [clang] Do not merge traps in functions annotated optnone (authored by hnrklssn).
[clang] Do not merge traps in functions annotated optnone
Nov 30 2022, 6:07 AM · Restricted Project, Restricted Project
hnrklssn closed D137714: Do not merge traps in functions annotated optnone.
Nov 30 2022, 6:06 AM · Restricted Project, Restricted Project

Nov 14 2022

hnrklssn updated the diff for D137714: Do not merge traps in functions annotated optnone.

Add explicit labels to FileCheck checks

Nov 14 2022, 4:33 AM · Restricted Project, Restricted Project

Nov 11 2022

hnrklssn added a comment to D137714: Do not merge traps in functions annotated optnone.

Made changes in line with what @fcloutier suggested.

Nov 11 2022, 11:04 AM · Restricted Project, Restricted Project
hnrklssn updated the diff for D137714: Do not merge traps in functions annotated optnone.

No longer reorders annotations to occur before codegen. Instead EmitTrapCheck checks the function declaration for OptimizeNoneAttr.

Nov 11 2022, 11:01 AM · Restricted Project, Restricted Project

Nov 10 2022

hnrklssn published D137714: Do not merge traps in functions annotated optnone for review.
Nov 10 2022, 4:45 AM · Restricted Project, Restricted Project

May 8 2021

hnrklssn updated the diff for D79097: [GVN] Improve analysis for missed optimization remark.

Ran clang-format

May 8 2021, 5:50 AM · Restricted Project
hnrklssn updated the diff for D79097: [GVN] Improve analysis for missed optimization remark.

Rebased onto upstream/main

May 8 2021, 3:58 AM · Restricted Project

May 7 2021

hnrklssn added a comment to D79097: [GVN] Improve analysis for missed optimization remark.

Forgot to rebase onto upstream... That explains why it went so smoothly!

May 7 2021, 3:15 PM · Restricted Project
hnrklssn updated the diff for D79097: [GVN] Improve analysis for missed optimization remark.

Rebasing to master

May 7 2021, 3:06 PM · Restricted Project
hnrklssn added a comment to D79097: [GVN] Improve analysis for missed optimization remark.

Cool :) This is my first submission, so I don't have commit access. If I understand correctly that means I need someone else to commit it on my behalf, yes?

May 7 2021, 4:20 AM · Restricted Project

Apr 23 2021

hnrklssn updated the diff for D79097: [GVN] Improve analysis for missed optimization remark.

Fixed formatting issue

Apr 23 2021, 12:20 AM · Restricted Project

Apr 22 2021

hnrklssn updated the diff for D79097: [GVN] Improve analysis for missed optimization remark.

Split CHECKs to keep them closer to their relevant functions, and added debug information to disambiguate instructions where relevant.

Apr 22 2021, 2:53 PM · Restricted Project

Apr 20 2021

hnrklssn added a comment to D79097: [GVN] Improve analysis for missed optimization remark.

It should be ready to review again now :)

Apr 20 2021, 10:57 AM · Restricted Project
hnrklssn updated the diff for D79097: [GVN] Improve analysis for missed optimization remark.

Removed undefs in test cases.

Apr 20 2021, 10:55 AM · Restricted Project
hnrklssn added a comment to D79097: [GVN] Improve analysis for missed optimization remark.

After a long wait I'm now finally able to work on this again! Please excuse the delay.

Apr 20 2021, 10:46 AM · Restricted Project
hnrklssn updated the diff for D79097: [GVN] Improve analysis for missed optimization remark.

Addressed review comments and fixed a crash for non-local variables.

Apr 20 2021, 10:42 AM · Restricted Project

Aug 14 2020

hnrklssn added a comment to D79097: [GVN] Improve analysis for missed optimization remark.

@hnrklssn hi, are you panning to get back to this at some point?

Yes, sorry about the delay!
Currently finishing the last bits of the thesis that this work is part of has taken priority, which doesn't leave too much time since I'm now also working full time.
After that's done though I intend to come back and do the cleanup necessary to upstream as much of the work as possible. It's all related to improving optimisation remarks in one way or another. :)

Oh cool, are you planning to publish/publicize this work once it's done?

Aug 14 2020, 11:56 AM · Restricted Project
hnrklssn added a comment to D79097: [GVN] Improve analysis for missed optimization remark.

@hnrklssn hi, are you panning to get back to this at some point?

Aug 14 2020, 11:14 AM · Restricted Project

May 7 2020

hnrklssn updated the diff for D79564: [Loop-Vectorize] Emit more context in remarks for optimization record This extends the reportVectorizationFailure helper function with more information emitted after setExtraArgs. This avoids cluttering the compiler frontend remarks with low....

Updating D79564: [Loop-Vectorize] update test cases to accept new ouput

May 7 2020, 6:45 AM · Restricted Project
hnrklssn created D79564: [Loop-Vectorize] Emit more context in remarks for optimization record This extends the reportVectorizationFailure helper function with more information emitted after setExtraArgs. This avoids cluttering the compiler frontend remarks with low....
May 7 2020, 4:29 AM · Restricted Project

May 2 2020

hnrklssn updated the diff for D79097: [GVN] Improve analysis for missed optimization remark.

Updating D79097: reformatting code according to pre-merge check

May 2 2020, 5:48 AM · Restricted Project
hnrklssn abandoned D79287: [GVN] Find OtherAccess for remark even if no uses are dominating the load.

Accidentally created an extra revision

May 2 2020, 5:47 AM · Restricted Project
hnrklssn updated the diff for D79097: [GVN] Improve analysis for missed optimization remark.

Updating D79097: [GVN] Improve analysis for missed optimization remark

May 2 2020, 4:44 AM · Restricted Project
hnrklssn updated the diff for D79097: [GVN] Improve analysis for missed optimization remark.

[GVN] [Remarks] Trying to push missing file

May 2 2020, 4:44 AM · Restricted Project
hnrklssn added a comment to D79097: [GVN] Improve analysis for missed optimization remark.

This is my first time using both Phabricator and Arcanist, so I'm not entirely familiar with the UI and workflow, but I can't seem to find one of the test cases I added in my update. It's supposed to be in llvm/test/Transforms/GVN/opt-remarks-multiple-users.ll, but I can't see it added in the revision. Did I miss something? It's an earlier commit than the new diff I pushed, so I would've thought it would be included as well.

May 2 2020, 4:12 AM · Restricted Project
hnrklssn updated the diff for D79097: [GVN] Improve analysis for missed optimization remark.

[GVN] Update analysis for optimization remark and add tests

May 2 2020, 3:40 AM · Restricted Project
hnrklssn created D79287: [GVN] Find OtherAccess for remark even if no uses are dominating the load.
May 2 2020, 3:40 AM · Restricted Project

Apr 29 2020

hnrklssn created D79097: [GVN] Improve analysis for missed optimization remark.
Apr 29 2020, 9:06 AM · Restricted Project