This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen] Pre-commit tests showing incorrect pattern FMLA_* pseudo instructions
ClosedPublic

Authored by igor.kirillov on Aug 4 2023, 6:53 AM.

Diff Detail

Event Timeline

igor.kirillov created this revision.Aug 4 2023, 6:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 4 2023, 6:53 AM
Herald added a subscriber: mgabka. · View Herald Transcript
igor.kirillov requested review of this revision.Aug 4 2023, 6:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 4 2023, 6:53 AM
paulwalker-arm added inline comments.Aug 4 2023, 9:39 AM
llvm/test/CodeGen/AArch64/sve-fp-combine.ll
1271

I'd remove this comment but let's certainly drop the mindlessly part.

1277–1279

This doesn't match the patterns you're moving in the follow on work. Is it possible to use llvm.fma and select as they appear in the PatFrags? You don't need to worry about FMA_PRED because that will be created automatically when ISD::FMA is lowered.

Remove comment. Update tests to match patterns better

igor.kirillov marked 2 inline comments as done.Aug 7 2023, 4:03 AM
paulwalker-arm accepted this revision.Aug 7 2023, 4:36 AM

Before landing the patch please add equivalent testing for the bogus FMLS cases as well.

llvm/test/CodeGen/AArch64/sve-fp-combine.ll
1271

The function names could do with a tweak to match the new IR.

This revision is now accepted and ready to land.Aug 7 2023, 4:36 AM

Update test functions names

igor.kirillov marked an inline comment as done.Aug 7 2023, 5:51 AM

Update CHECK lines