This is an archive of the discontinued LLVM Phabricator instance.

[NFC][AArch64] Handle processLogicalImmediate error
ClosedPublic

Authored by asavonic on Apr 7 2021, 9:49 AM.

Details

Summary

If processLogicalImmediate fails, we should return from the function
without changing InsInstrs or DelInstrs. This happens for
CodeGen/AArch64/urem-seteq-nonzero.ll LIT test as described in
https://reviews.llvm.org/D99662#2662296.

Callers of genAlternativeCodeSequence skip patterns where InsInstrs
stays empty, so this does not cause any issues now.

Diff Detail

Event Timeline

asavonic created this revision.Apr 7 2021, 9:49 AM
asavonic requested review of this revision.Apr 7 2021, 9:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 7 2021, 9:49 AM
asavonic updated this revision to Diff 385815.Nov 9 2021, 7:42 AM
asavonic retitled this revision from [AArch64] Handle processLogicalImmediate error in Machine InstCombine to [NFC][AArch64] Handle processLogicalImmediate error.
asavonic edited the summary of this revision. (Show Details)
asavonic added a reviewer: dmgreen.

This does not cause any issues now, because callers of genAlternativeCodeSequence skip patterns where InsInstrs is empty.
So the patch can be considered NFC.

dmgreen accepted this revision.Nov 9 2021, 8:58 AM

Sounds OK

This revision is now accepted and ready to land.Nov 9 2021, 8:58 AM
This revision was landed with ongoing or failed builds.Nov 10 2021, 5:57 AM
This revision was automatically updated to reflect the committed changes.