This is an archive of the discontinued LLVM Phabricator instance.

[LSR] Don't allow zero quotient as scale ref. PR56160
ClosedPublic

Authored by mkazantsev on Jun 22 2022, 6:51 AM.

Details

Summary

Scale reg should never be zero, so when the quotient is zero, we
cannot assign it there. Limit this transform to avoid this situation.

Diff Detail

Event Timeline

mkazantsev created this revision.Jun 22 2022, 6:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2022, 6:51 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
mkazantsev requested review of this revision.Jun 22 2022, 6:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2022, 6:51 AM
eopXD accepted this revision.Jun 22 2022, 6:56 AM

Looks good to me. I personally prefer a more comprehensive test case filename.
Thank you for the patch!

This revision is now accepted and ready to land.Jun 22 2022, 6:56 AM

Well, using bug IDs in test names is a common practice, and the idea is to refer the bug that this patch fixes.

This revision was landed with ongoing or failed builds.Jun 22 2022, 9:34 AM
This revision was automatically updated to reflect the committed changes.