This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add test case showing failure to convert gather/scatter to strided load/store. NFC
ClosedPublic

Authored by craig.topper on Jun 9 2022, 3:30 PM.

Details

Summary

Our optimization pass checks for loop simplify form, before doing
the transform. The loops here aren't in loop simplify form because
the exit block has two predecessors.

Diff Detail

Event Timeline

craig.topper created this revision.Jun 9 2022, 3:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 9 2022, 3:30 PM
craig.topper requested review of this revision.Jun 9 2022, 3:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 9 2022, 3:30 PM
craig.topper planned changes to this revision.Jun 10 2022, 10:14 AM

I was too aggressive here and lost the preheader too. I still need that.

Add a preheader basic block

reames accepted this revision.Jun 10 2022, 11:18 AM

LGTM

This revision is now accepted and ready to land.Jun 10 2022, 11:18 AM
This revision was landed with ongoing or failed builds.Jun 10 2022, 1:00 PM
This revision was automatically updated to reflect the committed changes.