Optimize more reduction-of-an-extend cases#7711
Optimize more reduction-of-an-extend cases#7711alexcrichton merged 2 commits intobytecodealliance:mainfrom
Conversation
Subscribe to Label ActionDetailsThis issue or pull request has been labeled: "cranelift", "isle"Thus the following users have been cc'd because of the following labels:
To subscribe or unsubscribe from this label, edit the |
|
Thanks for splitting this out! Would you mind enabling the Footnotes
|
|
I don't really know what I'm doing, but here's what I got: 7711.diff.txt I ran Looks plausible? Nothing that seems like a huge blow-up, but a bunch of places with a couple more CLIF instructions that end up as fewer lowered vcode instructions |
fitzgen
left a comment
There was a problem hiding this comment.
Stats look good -- thanks for getting those!
|
The first failure above was spurious, but the second failure looks like it might be related to this PR |
38a5298 to
ca9f14d
Compare
|
Yup, conflicted with myself from #7719. Should be good now. |

I was exploring
ireducepatterns more after I removed them from #7693 (comment) at fitzgen's request.In doing so, I noticed that there were some simpler cases missing first, like
ireduce.i8 sextend.i32 my_i16→ireduce.i8 my_i16andireduce.i16 sextend.i32 my_i8→sextend.i16 my_i8.So this PR adds those (and the unsigned equivalents).