This is an archive of the discontinued LLVM Phabricator instance.

[SROA] Avoid splitting loads/stores with irregular type
ClosedPublic

Authored by LemonBoy on Mar 26 2021, 12:31 PM.

Details

Summary

Upon encountering loads/stores on types whose size is not a multiple of 8 bits the SROA pass would either trip an assertion or use logic that was not meant to work with such irregularly-sized types.

Diff Detail

Event Timeline

LemonBoy created this revision.Mar 26 2021, 12:31 PM
LemonBoy requested review of this revision.Mar 26 2021, 12:31 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 26 2021, 12:31 PM
LemonBoy updated this revision to Diff 333667.Mar 27 2021, 3:46 AM

Run clang-format on the modified line.

aeubanks accepted this revision.Jun 8 2021, 3:01 PM

lgtm

This revision is now accepted and ready to land.Jun 8 2021, 3:01 PM
This revision was automatically updated to reflect the committed changes.

Sorry for the noise, the test got stale since I first uploaded it. I'll push again once this is sorted out.

Looks like @LemonBoy updated the test. I'm hitting this issue so wanted to get the status of this patch to know if I should include it?

I think this was already relanded. Do you have a repro?

I think this was already relanded. Do you have a repro?

Perfect it looks like you're right. I just read the messages in the thread and saw it was reverted but didn't see that it was merged after that, but the current state of the repo does appear to have this change. Great news thanks.