Page MenuHomePhabricator

wjschmidt (Bill Schmidt)
User

Projects

User does not belong to any projects.

User Details

User Since
Apr 4 2022, 3:15 PM (50 w, 6 d)

Recent Activity

Nov 29 2022

wjschmidt added a comment to D138747: [Support] On Windows 11, fix an affinity mask issue on large core count machines.

Our local testing with this patch shows that it solves our issue. Thanks very much! Looking forward to it landing.

Nov 29 2022, 6:10 AM · Restricted Project, Restricted Project

Sep 20 2022

wjschmidt closed D130044: [SLP] Don't vectorize PHIs in catchswitch blocks.

Whoops, I forgot to reference this revision when I committed the patch. This was bccc9aa81c1c1d212acd3314895731ec4de30e35.

Sep 20 2022, 5:52 AM · Restricted Project, Restricted Project

Sep 7 2022

wjschmidt added inline comments to D132966: [TTI] Allow passing ArrayRef of context instructions (NFC)..
Sep 7 2022, 12:13 PM · Restricted Project, Restricted Project

Jul 19 2022

wjschmidt committed rGbccc9aa81c1c: Don't vectorize PHIs in catchswitch blocks (authored by wjschmidt).
Don't vectorize PHIs in catchswitch blocks
Jul 19 2022, 6:11 AM · Restricted Project, Restricted Project

Jul 18 2022

wjschmidt requested review of D130044: [SLP] Don't vectorize PHIs in catchswitch blocks.
Jul 18 2022, 2:19 PM · Restricted Project, Restricted Project

Jun 15 2022

wjschmidt added inline comments to D125987: [SLP] Account for cost of removing FMA opportunities.
Jun 15 2022, 7:11 AM · Restricted Project, Restricted Project
wjschmidt added inline comments to D125987: [SLP] Account for cost of removing FMA opportunities.
Jun 15 2022, 7:00 AM · Restricted Project, Restricted Project
wjschmidt added inline comments to D125987: [SLP] Account for cost of removing FMA opportunities.
Jun 15 2022, 6:53 AM · Restricted Project, Restricted Project
wjschmidt added inline comments to D125987: [SLP] Account for cost of removing FMA opportunities.
Jun 15 2022, 6:37 AM · Restricted Project, Restricted Project
wjschmidt added inline comments to D125987: [SLP] Account for cost of removing FMA opportunities.
Jun 15 2022, 6:25 AM · Restricted Project, Restricted Project
wjschmidt added inline comments to D125987: [SLP] Account for cost of removing FMA opportunities.
Jun 15 2022, 6:20 AM · Restricted Project, Restricted Project
wjschmidt added inline comments to D125987: [SLP] Account for cost of removing FMA opportunities.
Jun 15 2022, 6:19 AM · Restricted Project, Restricted Project
wjschmidt added inline comments to D125987: [SLP] Account for cost of removing FMA opportunities.
Jun 15 2022, 6:14 AM · Restricted Project, Restricted Project

Jun 14 2022

wjschmidt updated the diff for D125987: [SLP] Account for cost of removing FMA opportunities.

Rebased; fixed pasto in getFMACostSavings(); ensured that getFMACostSavings() returns nonnegative values; and made a slight simplification in adjustForFMAs(). Thanks!

Jun 14 2022, 2:34 PM · Restricted Project, Restricted Project

Jun 3 2022

wjschmidt added inline comments to D125987: [SLP] Account for cost of removing FMA opportunities.
Jun 3 2022, 7:00 AM · Restricted Project, Restricted Project

May 25 2022

wjschmidt added inline comments to D125987: [SLP] Account for cost of removing FMA opportunities.
May 25 2022, 9:56 AM · Restricted Project, Restricted Project

May 23 2022

wjschmidt updated the diff for D125987: [SLP] Account for cost of removing FMA opportunities.

This revision now includes fixes for both cases: a horizontal reduction of fadds fed by a vectorized tree rooted at fmuls, and a vectorized tree of fmuls that feeds arbitrary fadds and/or fsubs. It was misguided to break this up into two patches without showing you both...

May 23 2022, 6:24 AM · Restricted Project, Restricted Project

May 19 2022

wjschmidt added inline comments to D125987: [SLP] Account for cost of removing FMA opportunities.
May 19 2022, 11:03 AM · Restricted Project, Restricted Project
wjschmidt added inline comments to D125987: [SLP] Account for cost of removing FMA opportunities.
May 19 2022, 10:06 AM · Restricted Project, Restricted Project
wjschmidt added inline comments to D125987: [SLP] Account for cost of removing FMA opportunities.
May 19 2022, 9:56 AM · Restricted Project, Restricted Project
wjschmidt added a comment to D125987: [SLP] Account for cost of removing FMA opportunities.

On what target are you seeing this problem?

May 19 2022, 9:54 AM · Restricted Project, Restricted Project
wjschmidt added inline comments to D125987: [SLP] Account for cost of removing FMA opportunities.
May 19 2022, 9:54 AM · Restricted Project, Restricted Project
wjschmidt added a comment to D125987: [SLP] Account for cost of removing FMA opportunities.

I think this loss is not only relevant for horizontal reductions, but can pessimize things in general, right?

May 19 2022, 9:39 AM · Restricted Project, Restricted Project
wjschmidt requested review of D125987: [SLP] Account for cost of removing FMA opportunities.
May 19 2022, 9:32 AM · Restricted Project, Restricted Project
wjschmidt added a comment to D124867: [SLP][NFC] Pre-commit test showing vectorization preventing FMA.

You're welcome! Thanks for the good advice!

May 19 2022, 8:49 AM · Restricted Project, Restricted Project
wjschmidt committed rGd633dbd19573: [SLP][NFC] Pre-commit test showing vectorization preventing FMA (authored by wjschmidt).
[SLP][NFC] Pre-commit test showing vectorization preventing FMA
May 19 2022, 6:59 AM · Restricted Project, Restricted Project
wjschmidt closed D124867: [SLP][NFC] Pre-commit test showing vectorization preventing FMA.
May 19 2022, 6:58 AM · Restricted Project, Restricted Project

May 18 2022

wjschmidt added a comment to D124867: [SLP][NFC] Pre-commit test showing vectorization preventing FMA.

LG with some nits

May 18 2022, 2:48 PM · Restricted Project, Restricted Project
wjschmidt updated the diff for D124867: [SLP][NFC] Pre-commit test showing vectorization preventing FMA.

Thanks for the helpful comments to date! In this version, I've managed to remove the undefs from the original test. I also added a second test that removes the loop structure. For both tests, today we will generate an unprofitable horizontal reduction. With the first test, adding cost modeling to constrain the horizontal reduction allows FMAs to be generated. With the second test, this is insufficient, as we then decide to vectorize the multiplies in an unprofitable way. The two tests demonstrate the need to account for lost FMAs in the cost modeling both when vectorizing for a reduction and when vectorizing a list of multiplies.

May 18 2022, 9:49 AM · Restricted Project, Restricted Project

May 17 2022

wjschmidt added a comment to D124867: [SLP][NFC] Pre-commit test showing vectorization preventing FMA.

The undefs still here.

Yes, see above -- I was unable to find a sequence without the undefs that causes the horizontal reduction to kick in.

Use -slp-threshold option to avoid problems with the cost.

May 17 2022, 7:18 AM · Restricted Project, Restricted Project

May 11 2022

wjschmidt added a comment to D124867: [SLP][NFC] Pre-commit test showing vectorization preventing FMA.

Also, why these sequences are not optimized by InsrtuctionCombiner to FMA?

Phase ordering -- it seems the FMA combining happens quite late in the pipeline. When we replace the adds with a horizontal reduction, the opportunity is removed.

Why, could you investigate it?

I'll have to refresh my memory, but my recollection is that the FMA combining is done in the MI level instruction combiner.

Why? Are there any target-caused limitations?

May 11 2022, 8:11 AM · Restricted Project, Restricted Project
wjschmidt added a comment to D124867: [SLP][NFC] Pre-commit test showing vectorization preventing FMA.

Also, why these sequences are not optimized by InsrtuctionCombiner to FMA?

Phase ordering -- it seems the FMA combining happens quite late in the pipeline. When we replace the adds with a horizontal reduction, the opportunity is removed.

Why, could you investigate it?

May 11 2022, 7:48 AM · Restricted Project, Restricted Project
wjschmidt added a comment to D124867: [SLP][NFC] Pre-commit test showing vectorization preventing FMA.

The undefs still here.

May 11 2022, 7:24 AM · Restricted Project, Restricted Project

May 10 2022

wjschmidt added a comment to D124867: [SLP][NFC] Pre-commit test showing vectorization preventing FMA.

Hi! I'd like to ping this revision, please.

May 10 2022, 6:31 PM · Restricted Project, Restricted Project

May 4 2022

wjschmidt updated the diff for D124867: [SLP][NFC] Pre-commit test showing vectorization preventing FMA.

I've made all requested changes, with the exception that I can't remove the loop structure or any of the undefs without breaking the test. In both cases, we no longer generate the horizontal reduction. I've made all the reductions Alexey requested, and changed the variable names as Vasileios requested.

May 4 2022, 9:10 AM · Restricted Project, Restricted Project
wjschmidt added inline comments to D124867: [SLP][NFC] Pre-commit test showing vectorization preventing FMA.
May 4 2022, 6:26 AM · Restricted Project, Restricted Project

May 3 2022

wjschmidt added inline comments to D124867: [SLP][NFC] Pre-commit test showing vectorization preventing FMA.
May 3 2022, 1:03 PM · Restricted Project, Restricted Project
wjschmidt added a comment to D124867: [SLP][NFC] Pre-commit test showing vectorization preventing FMA.

Try to reduce test more. I think you can remove attributes, datalayout, pass triple as an argument, remove comments for incoming branches

May 3 2022, 1:01 PM · Restricted Project, Restricted Project
wjschmidt requested review of D124867: [SLP][NFC] Pre-commit test showing vectorization preventing FMA.
May 3 2022, 11:56 AM · Restricted Project, Restricted Project