This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Ensure we do not access illegal operands in tryCombineMULLWithUZP1
ClosedPublic

Authored by dmgreen on Aug 31 2023, 7:20 AM.

Details

Summary

https://github.com/llvm/llvm-project/issues/65015 shows a case where tryCombineMULLWithUZP1 could attempt to look at the wrong operand of another user instruction. This adds an extra else as if we don't find the right opcode, we don't need to check the operands.

Diff Detail

Event Timeline

dmgreen created this revision.Aug 31 2023, 7:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 31 2023, 7:20 AM
dmgreen requested review of this revision.Aug 31 2023, 7:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 31 2023, 7:20 AM
efriedma accepted this revision.Aug 31 2023, 2:32 PM

LGTM

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
23020

Minor nit: add braces around "if" body so it more obviously matches the "else".

This revision is now accepted and ready to land.Aug 31 2023, 2:32 PM
This revision was landed with ongoing or failed builds.Sep 1 2023, 6:12 AM
This revision was automatically updated to reflect the committed changes.