Similar to the other code that costs main/alt instructions, the cmp should be using the VecTy for the costs, not the ScalarTy.
One of the tests look like it gets worse just because it is not simplified to 0.
Differential D153507
[SLP] Use vector types for cmp alt instructions costs dmgreen on Jun 22 2023, 1:09 AM. Authored by
Details Similar to the other code that costs main/alt instructions, the cmp should be using the VecTy for the costs, not the ScalarTy. One of the tests look like it gets worse just because it is not simplified to 0.
Diff Detail
Event TimelineComment Actions The test patch won't apply cleanly to top of trunk.
Comment Actions
Yeah I have not committed the updated tests yet. It is common practice to split them out to show just the differences, and I tend to keep them locally until the patch gets further into a review in case they need more adjustment. I can commit them if it's useful, but you can grab the new file using the View Options -> Show Raw File (Right) button. Or do you mean the code in the SLPVectorizer? I think that sound apply to a recent checkout.
Comment Actions
I meant to say the test hunk, sorry about that. You don't need to commit the first part, but it sometimes helps if it is shared on phabricator. In this case I was a bit confused as I could not tell what changes were made in the test compared to the existing version. In particular, I could not see the original @test function, but I could see a function named @degenerate which looked very much like @test, but it was not immediately obvious if only the its name was changed or if there were changes in its body.
|
Perhaps set the -slp-threshold such that it gets vectorized?