This is an archive of the discontinued LLVM Phabricator instance.

[X86][AMX] Let Store not be removed if combineCastStore failed
ClosedPublic

Authored by yubing on Jun 13 2023, 8:04 AM.

Diff Detail

Event Timeline

yubing created this revision.Jun 13 2023, 8:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 13 2023, 8:04 AM
yubing requested review of this revision.Jun 13 2023, 8:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 13 2023, 8:04 AM
pengfei added inline comments.Jun 13 2023, 8:34 AM
llvm/lib/Target/X86/X86LowerAMXType.cpp
999

Given the condition here, there's no chance return false so far.

Is there any test case for the patch?

yubing added inline comments.Jun 13 2023, 6:48 PM
llvm/lib/Target/X86/X86LowerAMXType.cpp
999

but better we align combineCastStore with combineLoadCast. combineCastStore might return false in the future

This revision is now accepted and ready to land.Jun 19 2023, 12:05 AM