This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Fix a bug from a pattern for uaddv(uaddlp(x)) ==> uaddlv
ClosedPublic

Authored by jaykang10 on Nov 5 2021, 4:38 AM.

Details

Summary

A pattern has selected wrong uaddlv MI from https://reviews.llvm.org/D104236.

It should be as below.

uaddv(uaddlp(v8i8)) ==> uaddlv(v8i8)

Diff Detail

Event Timeline

jaykang10 created this revision.Nov 5 2021, 4:38 AM
jaykang10 requested review of this revision.Nov 5 2021, 4:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 5 2021, 4:38 AM
LemonBoy accepted this revision.Nov 5 2021, 4:49 AM

LGTM.
My only suggestion would be to drop the popcount test as the bug affects uaddlv4h_from_v8i8, but that's only a minor nit.

This revision is now accepted and ready to land.Nov 5 2021, 4:49 AM

LGTM.
My only suggestion would be to drop the popcount test as the bug affects uaddlv4h_from_v8i8, but that's only a minor nit.

Yep, let me remove it.

Thanks for bug report and reviewing this patch.

jaykang10 updated this revision to Diff 385032.Nov 5 2021, 5:03 AM
This revision was landed with ongoing or failed builds.Nov 5 2021, 5:48 AM
This revision was automatically updated to reflect the committed changes.