Page MenuHomePhabricator

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

crobeck (Corbin Robeck)
User

Projects

User does not belong to any projects.

User Details

User Since
Jan 27 2022, 6:49 AM (87 w, 4 d)

Recent Activity

Jul 25 2023

crobeck committed rG7a4968b5a378: [AMDGPU] Add dynamic stack bit info to kernel-resource-usage Rpass output (authored by crobeck).
[AMDGPU] Add dynamic stack bit info to kernel-resource-usage Rpass output
Jul 25 2023, 12:22 PM · Restricted Project, Restricted Project, Restricted Project
crobeck closed D156040: [AMDGPU] Add dynamic stack bit info to kernel-resource-usage Rpass output.
Jul 25 2023, 12:22 PM · Restricted Project, Restricted Project, Restricted Project
crobeck updated the diff for D156040: [AMDGPU] Add dynamic stack bit info to kernel-resource-usage Rpass output.
Jul 25 2023, 11:17 AM · Restricted Project, Restricted Project, Restricted Project
crobeck updated subscribers of D156040: [AMDGPU] Add dynamic stack bit info to kernel-resource-usage Rpass output.

The openmp runtime needs to do the same if not being done already.

Jul 25 2023, 9:15 AM · Restricted Project, Restricted Project, Restricted Project

Jul 24 2023

crobeck updated the diff for D156040: [AMDGPU] Add dynamic stack bit info to kernel-resource-usage Rpass output.

Change remark order and add static stack w/ indirect function call test case

Jul 24 2023, 6:15 PM · Restricted Project, Restricted Project, Restricted Project

Jul 23 2023

crobeck updated the summary of D156040: [AMDGPU] Add dynamic stack bit info to kernel-resource-usage Rpass output.
Jul 23 2023, 12:32 PM · Restricted Project, Restricted Project, Restricted Project
crobeck updated the diff for D156040: [AMDGPU] Add dynamic stack bit info to kernel-resource-usage Rpass output.

Update clang frontend test

Jul 23 2023, 12:31 PM · Restricted Project, Restricted Project, Restricted Project
crobeck updated the diff for D156040: [AMDGPU] Add dynamic stack bit info to kernel-resource-usage Rpass output.

Remove conditional and consolidate new test into existing remarks test

Jul 23 2023, 11:04 AM · Restricted Project, Restricted Project, Restricted Project
crobeck added a comment to D156040: [AMDGPU] Add dynamic stack bit info to kernel-resource-usage Rpass output.

It is part of the kernel meta data that is passed to the runtime to indicate the compiler can't determine the required stack amount use of the kernel and to tell the runtime it needs to check the value set from hipDeviceSetLimit.

I don't see how this conveys any information. The compiler writes the stack size to be allocated. If it doesn't know what is sufficient, it's going to request some maximum and hope for the best.

The runtime allocates the requested size. If it has a bit saying "but use less if you know that's safe", then it can do nothing with that bit unless it has extra information. If it has that extra information, it doesn't need this bit.

Therefore instead of adding printing stuff related to this Boolean flag, we should delete the Boolean flag.

What's the use case I'm missing which makes this flag necessary/beneficial?

Jul 23 2023, 10:36 AM · Restricted Project, Restricted Project, Restricted Project
crobeck added a comment to D156040: [AMDGPU] Add dynamic stack bit info to kernel-resource-usage Rpass output.

What is this bit used for? Codegen and debug info emission don't need it. I'm not sure what sets CurrentProgramInfo.DynamicCallStack at present either.

Jul 23 2023, 5:41 AM · Restricted Project, Restricted Project, Restricted Project

Jul 22 2023

crobeck updated the summary of D156040: [AMDGPU] Add dynamic stack bit info to kernel-resource-usage Rpass output.
Jul 22 2023, 7:06 PM · Restricted Project, Restricted Project, Restricted Project
crobeck added reviewers for D156040: [AMDGPU] Add dynamic stack bit info to kernel-resource-usage Rpass output: b-sumner, bcahoon.
Jul 22 2023, 6:53 PM · Restricted Project, Restricted Project, Restricted Project
crobeck requested review of D156040: [AMDGPU] Add dynamic stack bit info to kernel-resource-usage Rpass output.
Jul 22 2023, 6:50 PM · Restricted Project, Restricted Project, Restricted Project

Jul 18 2023

crobeck added a comment to D155441: [ADT] Remove SFINAE constraint from llvm::iterator_range ctor for gcc-7.

is the build line I was using. The unit that crashes is:

Jul 18 2023, 5:43 AM · Restricted Project, Restricted Project
crobeck added a comment to D155441: [ADT] Remove SFINAE constraint from llvm::iterator_range ctor for gcc-7.

FWIW, the lit checks were failing for me with with GCC 8.3 so that GCC version check may need to be more inclusive.

Don't start this 😅
At this point, I'm very much out of my comfort zone.
I had to install custom PPA only to get gcc-7 and gcc-8 on my system, as those are no longer available officially.
I managed to get 7.5.0 and 8.4.0, so I could fix this. However, to get 8.3, I'd assume I need to compile gcc only for this.
And I'm not sure if we should expect all minor versions of a compiler. To me, it makes more sense to support only the latest revision of a major compiler version.

I intentionally, waited for the Harbormaster to see breakages. Also, after I landed the patch, I waited a couple of days until I pushed some other changes to build on top of this feature to make sure we didn't need to revert many changes if something breaks.
IMO if we would really care about these compilers, we should have them in BuildKite.

Jul 18 2023, 4:15 AM · Restricted Project, Restricted Project

Jul 17 2023

crobeck added a comment to D155441: [ADT] Remove SFINAE constraint from llvm::iterator_range ctor for gcc-7.

Allegedly, GCC-8 and above builds just fine.

It would be nice to test this:)

I'll check that tomorrow.

Jul 17 2023, 5:39 PM · Restricted Project, Restricted Project

Jul 4 2023

crobeck closed D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

rG853b2a84cb9902725752e9603011041ebe33c7bf

Jul 4 2023, 6:40 PM · Restricted Project, Restricted Project, Unknown Object (Project)

Jun 23 2023

crobeck added inline comments to D149775: [AMDGPU] Reserve SGPR pair when long branches are present.
Jun 23 2023, 4:19 PM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

skipping some of register scavenging if we already have a reserved register

Jun 23 2023, 4:18 PM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck added inline comments to D149775: [AMDGPU] Reserve SGPR pair when long branches are present.
Jun 23 2023, 4:01 PM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

remove unnecessary set functions

Jun 23 2023, 3:58 PM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

invert to reserve register by default and then have pass remove the register if unneeded

Jun 23 2023, 7:30 AM · Restricted Project, Restricted Project, Unknown Object (Project)

Jun 22 2023

crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

variable, pointer/reference clean up

Jun 22 2023, 12:30 PM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

remove specific instruction offsets from distance calc

Jun 22 2023, 11:43 AM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck added inline comments to D149775: [AMDGPU] Reserve SGPR pair when long branches are present.
Jun 22 2023, 9:52 AM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

Swap out reserve register routine for TRI helper function

Jun 22 2023, 9:43 AM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck added inline comments to D149775: [AMDGPU] Reserve SGPR pair when long branches are present.
Jun 22 2023, 6:55 AM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

Update reserveReg calls in SIFrameLowering

Jun 22 2023, 6:53 AM · Restricted Project, Restricted Project, Unknown Object (Project)

Jun 21 2023

crobeck added inline comments to D149775: [AMDGPU] Reserve SGPR pair when long branches are present.
Jun 21 2023, 1:45 PM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

address review comments, add additional debug instruction test

Jun 21 2023, 1:41 PM · Restricted Project, Restricted Project, Unknown Object (Project)

Jun 20 2023

crobeck updated the summary of D149775: [AMDGPU] Reserve SGPR pair when long branches are present.
Jun 20 2023, 8:29 AM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck updated the summary of D149775: [AMDGPU] Reserve SGPR pair when long branches are present.
Jun 20 2023, 8:27 AM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck updated the summary of D149775: [AMDGPU] Reserve SGPR pair when long branches are present.
Jun 20 2023, 8:27 AM · Restricted Project, Restricted Project, Unknown Object (Project)

Jun 19 2023

crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

clean up unused header files and an unused function

Jun 19 2023, 12:51 PM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

Reduce complexity of branch distance calculation substantially - we now just approximate branch size by assuming 8 bytes per instruction. Also updated pass name to be more representative of what the pass does.

Jun 19 2023, 12:23 PM · Restricted Project, Restricted Project, Unknown Object (Project)

Jun 16 2023

crobeck added a comment to D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

Any further comments on this? @arsenm Do you think we need to update the distance calculation or are OK to leave as is?

Jun 16 2023, 9:43 AM · Restricted Project, Restricted Project, Unknown Object (Project)

Jun 9 2023

crobeck added inline comments to D149775: [AMDGPU] Reserve SGPR pair when long branches are present.
Jun 9 2023, 1:24 PM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

add test for when maxed out on SGPRs

Jun 9 2023, 1:12 PM · Restricted Project, Restricted Project, Unknown Object (Project)

Jun 2 2023

crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.
Jun 2 2023, 12:33 PM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck added inline comments to D149775: [AMDGPU] Reserve SGPR pair when long branches are present.
Jun 2 2023, 10:13 AM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck added inline comments to D149775: [AMDGPU] Reserve SGPR pair when long branches are present.
Jun 2 2023, 10:08 AM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.
Jun 2 2023, 10:07 AM · Restricted Project, Restricted Project, Unknown Object (Project)

Jun 1 2023

crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

fix a type mismatch

Jun 1 2023, 6:20 PM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.
Jun 1 2023, 6:07 PM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

update types in GCNPreRABranchDistance pass

Jun 1 2023, 1:45 PM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

formatting

Jun 1 2023, 1:37 PM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck added inline comments to D149775: [AMDGPU] Reserve SGPR pair when long branches are present.
Jun 1 2023, 1:33 PM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

update to bypass register scavenger if we've previous reserved ones

Jun 1 2023, 1:32 PM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

fix some tests

Jun 1 2023, 12:00 PM · Restricted Project, Restricted Project, Unknown Object (Project)

May 31 2023

crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

formatting

May 31 2023, 7:36 PM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck added inline comments to D149775: [AMDGPU] Reserve SGPR pair when long branches are present.
May 31 2023, 10:52 AM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

rebase and address review comments

May 31 2023, 10:51 AM · Restricted Project, Restricted Project, Unknown Object (Project)

May 23 2023

crobeck added inline comments to D149775: [AMDGPU] Reserve SGPR pair when long branches are present.
May 23 2023, 9:05 AM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck added a comment to D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

What if we always reserve a register for long jumps?

May 23 2023, 8:49 AM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

addressing review comments.

May 23 2023, 8:45 AM · Restricted Project, Restricted Project, Unknown Object (Project)

May 19 2023

crobeck updated the summary of D149775: [AMDGPU] Reserve SGPR pair when long branches are present.
May 19 2023, 1:10 PM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

rebase and address some review comments

May 19 2023, 12:21 PM · Restricted Project, Restricted Project, Unknown Object (Project)

May 9 2023

crobeck added a comment to D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

Absolutely do not globally reserve s[6:7] for such things. Low SGPRs are very often given special meaning in function signatures.

Furthermore, is a global reservation even necessary? You could identify candidate long branches and give them a fake clobbered operand, so that the register allocator can just pre-choose a register pair, but not block it everywhere.

May 9 2023, 5:21 AM · Restricted Project, Restricted Project, Unknown Object (Project)

May 8 2023

crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

address review comment

May 8 2023, 8:25 AM · Restricted Project, Restricted Project, Unknown Object (Project)

May 4 2023

crobeck added inline comments to D149775: [AMDGPU] Reserve SGPR pair when long branches are present.
May 4 2023, 6:33 AM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.

address some review comments

May 4 2023, 6:22 AM · Restricted Project, Restricted Project, Unknown Object (Project)

May 3 2023

crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.
May 3 2023, 12:33 PM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck updated the diff for D149775: [AMDGPU] Reserve SGPR pair when long branches are present.
May 3 2023, 11:28 AM · Restricted Project, Restricted Project, Unknown Object (Project)
crobeck requested review of D149775: [AMDGPU] Reserve SGPR pair when long branches are present.
May 3 2023, 11:15 AM · Restricted Project, Restricted Project, Unknown Object (Project)